View Single Post
 
Old 06-18-2013, 04:53 PM
JennEx JennEx is offline Windows XP Office 2003
Competent Performer
 
Join Date: May 2010
Posts: 162
JennEx is on a distinguished road
Default Word Document Not Opening With Excel VBA

Hope this question is OK here ... it was a toss up between Excel and Word VBA ...



I am using this Excel VBA code to open up a word document (H:/Sun/Ps/Doop/Stes/Turtle/Tue 18-Jun-13/DR_WPE1(14).docx) from excel :

Code:
Set wordapp = CreateObject("word.Application")
wordapp.documents.Open "H:/Sun/Ps/Doop/Stes/Turtle/" & waxon & "/" & flname & "/.docx" 
wordapp.Visible = True
Waxon is a folder name ... Tue 18-Jun-13, and flname = DR_WPE1(14)

The problem .. although Word (the application)opens, there is no document.
Reply With Quote