
Please help with text box to Word bookmark problem
Hi Mark,
Here are some articles that might help you:
Working with bookmarks
http://www.mvps.org/word/FAQs/MacrosVBA/WorkWithBookmarks.htm
Inserting text at a bookmark without deleting the bookmark
http://www.mvps.org/word/FAQs/MacrosVBA/InsertingTextAtBookmark.htm
Control Word from Excel
http://www.mvps.org/word/FAQs/InterDev/ControlWordFromXL.htm
(sample code applies to your VB application as well)
Hope this helps,
regards,
Astrid
So that all can benefit from the discussion, please post all follow-ups to the newsgroup.
Visit the MVP Word FAQ site at http://www.mvps.org/word/
Quote:
> Hi All
> Sorry only me again!
> I have a biggy one this time that is really baffalling me.
> I want to be able to enter in words, numbers etc.. in my vb programs text
> box, then i want vb to put them to go into a MS word document.
> I know how to setup a textbox in vb, and i know how to setup a msword doc
> with a bookmark,. however i am missing the link
> on how to tell vb to enter in the text to the word.doc bookmark.
> jsut for example, if my doc was c:\word\vbprogram.doc and the bookmark was
> "vbwords" what would the code be ?
> I am sure it can be done, does anyone know how ?
> Many Thanks!
> Mark.