word and VB.NET

Talk2Tom11

Well-known member
Joined
Feb 22, 2004
Messages
144
Location
Westchester, NY
I was wondering if there was a way to replace the text in a word file with the text in a textbox from vb. I know you can open up word and enter a <bookmark>. But I want to know if I can replace the text that is already there.
 
Hey Tom,

I think youll do better continuing with your posts in XVBT:

(1) http://www.computerhelp.forum/showthread.php?t=211685
(2) http://www.computerhelp.forum/showthread.php?t=212097

The reason is that Im just no good at Word at all, and it doesnt look like others here know it terribly much either. On XVBT, Herilane is pretty good at Word and .Net and so should be able to help you out a little better.

My only advice would be to use the Macro Recorder to get a feel for some of the commands that are available. You can turn on the recorder with Alt|Tools|Macro|Record...

I would focus on Find & Replace, myself. I dont know about Boookmarks, if you know what youre doing, its probably fine, but I would personally put text like "<Instert 1>" and "<Insert 2>" and then do Find/Replace to replace these specific tags with the text from the Textbox.

I think that Bookmarks probably would just make this process a little harder.

-- Mike
 
Last edited by a moderator:
Back
Top