![]() ![]() (Office 2003 is Library 11.0)? Imports Microsoft.Office The only thing I can think of is did you add a Reference to Microsoft Office Library 12. It's a little different than yours - but it worked to replace with Boss in the Word doc. Rufus, I used this and it works - in Word 2003 and VS2008. ![]() ![]() So if anybody could tell me what I have to do differently that I get this working with office 2007 I'd be very glad! thanks! I have also tried running the code on a machine with Office 2003 which was successful. I use VSTD2008 and Office 2007 on Windows 7. When running the code I get a AccessViolationException on the codeline where the Range.Find is called. MessageBox.Show("Error accessing Word document.") Execute(Replace:=.WdReplace.wdReplaceAll) Here's my code: Dim word As New .ApplicationÄim doc As .DocumentÄim myStoryRange As .Range Hi everybody! I try to make a find/replace in a existing word document using vb.net. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |