Word and VB.net
Word and VB.net
Word and VB.net
Word and VB.net
Word and VB.net
Word and VB.net Word and VB.net Word and VB.net Word and VB.net Word and VB.net Word and VB.net Word and VB.net Word and VB.net
Word and VB.net Word and VB.net
Word and VB.net
Go Back  Xtreme Visual Basic Talk > > > Word and VB.net


Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2005, 11:49 AM
Talk2Tom11's Avatar
Talk2Tom11 Talk2Tom11 is offline
Centurion
 
Join Date: Dec 2003
Location: Westchester, NY
Posts: 195
Question Word and VB.net


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.
__________________
Ever wonder about those people who spend $2.00 a piece on those little bottles of Evian water? Try spelling Evian backwards: NAIVE.
Reply With Quote
  #2  
Old 02-18-2005, 03:45 PM
herilane's Avatar
herilaneWord and VB.net herilane is offline
Unashamed geek

Retired Moderator
* Expert *
 
Join Date: Jul 2003
Location: London, England
Posts: 8,988
Default

You can use Word's Find & Replace functionality through VB. Have a look at the Word VBA FAQ for a brief intro (the code there is VBA not .Net) and read about it in the VBA help files. Next I would recommend recording a macro while using it. And when you're comfortable with how it works, convert the VBA code (from the macro recorder) to VB.Net.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Word and VB.net
Word and VB.net
Word and VB.net Word and VB.net
Word and VB.net
Word and VB.net
Word and VB.net Word and VB.net Word and VB.net Word and VB.net Word and VB.net Word and VB.net Word and VB.net
Word and VB.net
Word and VB.net
 
Word and VB.net
Word and VB.net
 
-->