![]() |
#1
|
|||
|
|||
![]()
Hello, I have a macro that i execute within the document to open another word docx. When I exit the document i get this error.
Sub OPENBARCODE() ' ' OPENBARCODE Macro ' ' Dim WordApp As Object Dim WordDoc As Object Set WordApp = CreateObject("Word.Application") Set WordDoc = WordApp.Documents.Open(FileName:="C:\Documents and Settings\Administrator\Desktop\sMD1.docx") WordApp.Visible = True Set WordDoc = Nothing Set WordApp = Nothing End Sub Any thoughts? |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
lostinwebspace | Word VBA | 1 | 02-13-2016 10:28 AM |
Save As Macro using first line of document as document name | redzan | Word VBA | 1 | 01-31-2015 09:24 PM |
![]() |
doctor_who12 | Excel Programming | 1 | 01-22-2014 04:47 PM |
![]() |
ximpostor | Word VBA | 10 | 10-12-2012 12:35 PM |
can I run a macro when I open a specific doc. | shreked | Word | 8 | 01-12-2012 03:36 AM |