|
Topic in comp.lang.basic.visual.misc - view in Groups BetaNew! |
Start a new topic - Subscribe to this group - About group | Messages 1 - 4 of 4 |
|
Open Word from VB ! | ||
All 4 messages in topic - view as tree |
Please anyone, how can I open a word document from VB ??? This code don't work :( Dim MyAppID, ReturnValue I want VB to find Word itself without me telling the path ! -- |
Stig <s...@online.no> wrote: From the Office Automation 97 help file: >Please anyone, how can I open a word document from VB ??? >This code don't work :( >Dim MyAppID, ReturnValue >I want VB to find Word itself without me telling the path ! >-- The following code creates a document and record its creation date. Sub CreateDoc() Set WordRng = WordDoc.Range With WordPar.Range |
|
Stig <s...@online.no> wrote in article <33B90272....@online.no>... > Please anyone, how can I open a word document from VB ??? You can use ShellExecute and use "open" for the operation > This code don't work :( > Dim MyAppID, ReturnValue > I want VB to find Word itself without me telling the path ! and the documents filename as lpfile parameter. The program which is associated with this file type will automatically be The path to the program is registered in the registry. Ole automation works well, but is slows down your application. |
End of messages |
« Newer topic - VB5 and OOP | vb3 and year2000 - Older topic » |
Topic in comp.lang.basic.visual.misc - view in Groups BetaNew! |
|
Google Home - Terms of Service - Privacy Policy |
©2006 Google