![]() |
#1
|
|||
|
|||
![]()
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 The problem .. although Word (the application)opens, there is no document. |
#2
|
|||
|
|||
![]()
I use "Dim wordApp as Word.Application" rather than "Set wordApp = CreateObject("word.Application")"
May need to add an appropriate reference to do so, I'd give that a try and see if it helps? |
#3
|
|||
|
|||
![]()
Thanks for the suggestion Depricated ...
Turns out it was a simple spelling mistake. "/.docx", should be just ".docx". |
#4
|
|||
|
|||
![]()
I completely overlooked that hah
|
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
HenrikSandstrom | Word | 1 | 12-03-2012 03:52 PM |
![]() |
bTaryag | Word | 1 | 08-02-2011 02:48 PM |
Get just grey box when opening Excel Document 2010 | sebbero | Excel | 1 | 11-10-2010 04:24 AM |
Word document not opening | 7beats | Word | 2 | 04-16-2010 12:40 AM |
Opening word document problem | SPARKY77 | Word | 4 | 11-02-2009 01:34 AM |