[dba-Tech] Yet another Word question

Bryan Carbonnell carbonnb at gmail.com
Tue Jul 12 11:05:23 CDT 2005


On 12/07/05, Arthur Fuller <artful at rogers.com> wrote:
> Assuming that Word is already opened programmatically from Access, with a
> document open, I now want to open two more files in Word. How might I do
> that. Would it simply be...
> 
>     objWord.Documents.Add .... plus the name of the file, and the same again
> with the name of the other file.

Nope. Add is for creating new docs based on templates.

Use

objWord.Documents.Open "c:\full\path\to\your.doc"

-- 
Bryan Carbonnell - carbonnb at gmail.com
Life's journey is not to arrive at the grave safely in a well
preserved body, but rather to skid in sideways, totally worn out,
shouting "What a great ride!"



More information about the dba-Tech mailing list