|
-
Jul 18th, 2011, 03:12 AM
#3
Thread Starter
New Member
Re: Word 2010 Automation
Thanks for the reply. However, I did a reinstall of Office 2010 and that particular problem is now solved. I do still have problems with Word 2010 documents though. My code has a global Word Object, msw. I open Word by stating Set msw = New Word.Application. I then use msw.documents.add to open a blank document and try to add text to it using msw.ActiveDocument.Range.Text = StringValue. The error I get is as follows: Run-time error 4248. This command is not available because no document is open. If I then debug and step though the code it works.
If I try to use the msw.Open command that fails as well. This problem is across all our OS's, XP Pro, Vista and Windows 7.
Any ideas or pointers would be appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|