|
-
Nov 8th, 2000, 09:59 AM
#1
Thread Starter
New Member
Does anyone have code that will open a word doc from Excel?
Thanks!!!
-
Nov 8th, 2000, 10:30 AM
#2
Fanatic Member
You could use CreateObject(...) - slow
or, quicker
Dim myWord As Word.Application
Set myWord = New Word.Applicationn etc.
(but you'll need a reference to the Word library to do this)
Cheers,
Paul.
Not nearly so tired now...
Haven't been around much so be gentle...
-
Nov 8th, 2000, 10:43 AM
#3
Thread Starter
New Member
I know this is basic but ..... if the word document you want to open already exists can you reference that in your code?
-
Nov 8th, 2000, 10:48 AM
#4
Fanatic Member
Yes, use
Code:
Dim wObj As New Word.Application
wObj.Documents.Open FileName:="MyDoc.doc"
Cheers,
Paul.
Not nearly so tired now...
Haven't been around much so be gentle...
-
Nov 8th, 2000, 10:49 AM
#5
Thread Starter
New Member
-
Nov 8th, 2000, 10:55 AM
#6
Hyperactive Member
Oi! Paul! pack it in with that in-line New ****. You early binding bas*ard!
;-)
Beer on friday.
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
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
|