Applying Bold formatting to one word from a line of text in a Word

E

Eager_Beever

I am a developer using Visual Basic 6. I have written a program where the
user enters some values to text boxes. Depending upon the values, a Word
document is created which displays the values entered along with descriptive
labels. None of the fields/text boxes are compulsory and the output Word
document contains only those non-zero values. (That means I can not use
predefined bookmarks to mark locations. The resultant document will not
contain a fixed no. of lines each time). The user wants to apply bold
formatting only to the values entered by him and not to the descriptive
labels. Both the labels and values are to be printed on the same line (in
plain and in bold format respectively).

I have done everything else. I am able to create a Word document (.doc)
using Visual Basic with all the required contents. I am also able to apply
Bold and Underline formatting to an entire line. I am able to use different
fonts and font sizes to an entire line. But I am unable to apply bold
formatting only to a selected word from a line.

I need the document in the following format:

Today's Price : Rs. [125.00]
Available Qty : [10.250]

In the above output, only the values enclosed within square braces should be
in Bold while everything else should be normal.

I will appreciate any type of help or suggestion on this. Thank You.
 

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