Connecting Tech Pros Worldwide Help | Site Map

opening ms word

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:09 PM
stoker
Guest
 
Posts: n/a
Default opening ms word

can anybody, please, tell me how to open prepared earlier ms word document
or template from ms access vba code?
all my efforts failed. ive managed to open empty document, but when i want
to open my own one then opens a copy of database im currently running. its
interesting when u c filename "whatever.doc" and access opens...
i will be gratefull for any help.

*-*-*
best regards
stoker



  #2  
Old November 12th, 2005, 06:10 PM
Pieter Linden
Guest
 
Posts: n/a
Default Re: opening ms word

"stoker" <stoker@w-s.pl> wrote in message news:<bu70c2$l7v$1@inews.gazeta.pl>...[color=blue]
> can anybody, please, tell me how to open prepared earlier ms word document
> or template from ms access vba code?
> all my efforts failed. ive managed to open empty document, but when i want
> to open my own one then opens a copy of database im currently running. its
> interesting when u c filename "whatever.doc" and access opens...
> i will be gratefull for any help.
>
> *-*-*
> best regards
> stoker[/color]

How to open a template through code:
http://www.mvps.org/access/modules/mdl0043.htm

How to open a word doc through code:

Something like....
'Horrible code coming...
Public Function OpenWordDoc(ByVal strDoc As String)
Dim appWord As Word.Application
Set appWord = New Word.Application

appWord.Documents.Open (strDoc)
appWord.Activate

End Function
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.