Sending Tips/Comments Field from VB

M

M.L.Srinivas

Hi,

How can i create field in ms-word (what we create by
pressing ctrl+f9, to display tips/comments on pressing
alt+9 ) from vb.

thanks in advance

M.L.Srinivas
 
J

Jonathan West

Hi M.L.Srinivas

Its not entirely clear from your question what you are trying to achieve.
Could you explain in some more detail?
 
M

M.L.Srinivas

Hi Mr. West

To explain you clearly my necessity...

I'm working as a programmer in a Transcription company,
for whom there will some predefined word templates.

I'm trying to send from vb application some data to word,
which i'm doing by creating customdocproperties and
inserting them as fields in the word template.

Now, apart from that...i want to display some formatting
rules for the user which will be displayed when they press
Alt+f9. This manually i'm able to do by pressing ctrl+f9
in word and type the required matter , which will be shown
only when alt+f9 is pressed.

Now i want to give an interface in vb (using vba) thru
which user can create these comments/tips in word
template. Is that possible? I hope it is, as we are able
to place fields from vb, why not these? but how? Please
help me.

Thanks for your time.

M.L.Srinivas
 
W

Word Heretic

G'day "M.L.Srinivas" <[email protected]>,

use a userform or input box to gain the user feedback and insert the
comment object manually. If you need a quick n easy (compared to other
ways) full format option, open and monitor a new temp doc.



M.L.Srinivas said:
Hi Mr. West

To explain you clearly my necessity...

I'm working as a programmer in a Transcription company,
for whom there will some predefined word templates.

I'm trying to send from vb application some data to word,
which i'm doing by creating customdocproperties and
inserting them as fields in the word template.

Now, apart from that...i want to display some formatting
rules for the user which will be displayed when they press
Alt+f9. This manually i'm able to do by pressing ctrl+f9
in word and type the required matter , which will be shown
only when alt+f9 is pressed.

Now i want to give an interface in vb (using vba) thru
which user can create these comments/tips in word
template. Is that possible? I hope it is, as we are able
to place fields from vb, why not these? but how? Please
help me.

Thanks for your time.

M.L.Srinivas

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

If my answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
 
C

Cindy M -WordMVP-

Hi M.L.Srinivas,
How can i create field in ms-word (what we create by
pressing ctrl+f9, to display tips/comments on pressing
alt+9 ) from vb.
I've been following this, and trying to understand exactly
what you mean...

Are you saying that you're wanting to pass data from your
application interface into Word and store it where the user
can look at it? And you're wanting to use Word FIELD CODES
for this? (That's what the keyboard shortcuts you mention
deal with, by installation default, anyway.)

Word field codes aren't really meant to be used for this
purpose, but there are a couple that would allow it, such
as the SET field, or perhaps a PRIVATE field. The basic
syntax for creating a field code in a document would be
along the lines of:
ActiveDocument.Fields.Add _
.Range:=rng
.Type:=wdFieldSet
.Text:= "ABookmarkName" & " All the text you want
to display"
.PreserveFormatting:=False

As Steve has indicated, the more appropriate thing to do
would be to use Word's COMMENT feature. OTOH, with the
tendency for newer Word versions to open documents with
comments and other "reviewing" things displayed by default,
I'm not sure that's what you would want.

Another thing that people have used quite a bit for this is
text formatted as "hidden".

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Sep 30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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