issue with creating template for letter

A

Associates

Hi,

I have a problem in regards to word template for office 03. I have a
template designed to generate a company letter. Like any normal letter, it
has date, sender, address, regarding, body of the letter, and signature of
the manager. So, when user runs the template, a userform comes up. They can
then fill out all empty textfields which are then placed into the word
document. This works so far. However, my problem here is about the body of
the letter. Since i use {DOCVARIABLE mybodytext} in the word document, all
the texts entered or typed in by user via userform is treated as a variable.
This is something i didn't anticipate or give it a thought when designing
this template. Today, i have one of my colleagues wanting to create a letter
to be sent to his client. (By the way, i use a normal text-box in the
userform that allows user to enter multiple lines) He put in some bullet
points to the text-box in the userform as if it was for a normal report.
After pressing the button "ok", all the DOCVARIABLE-s are replaced with
values from the textboxes and it worked. However, there is a problem with the
bullet points. It didn't look like bullet points at all. The other problem is
with the gap spacing between the previous line and the next line. Obviously,
he couldn't fix them individually with the spacing and bullet points as they
all are one variable.

I must have taken the wrong approach here. I wonder if there are any better
approaches that may help me out. Basically my aim is to create a template so
that any users who want to write letter to their client, can actually use it.

Your help is greatly appreciated

Thank you in advance
 
D

Doug Robbins - Word MVP

It would not be normal to be entering all of the text for the letter into a
textbox on the userform. If you want the selection to be moved to the place
in the document where the text of the letter is to commence, put a bookmark
at that location and at the end of the code in the userform, put the command
to select the .Range of the bookmark.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top