Dot as doc?

  • Thread starter Thread starter Harmannus
  • Start date Start date
H

Harmannus

Hallo,

Is have a macro with the below code in the line "RunApp"

C:\Program Files\Microsoft Office\Office10\Winword.exe
e:\documents\dbOfferte.dot

On opening Word the dot is opened instead of the doc variant. Can i add some
code to the above line so the doc file is opened?

Thanx for any tips!


Regards,

Harmannus
 
Use the following path instead:
C:\Program Files\Microsoft Office\Office10\Winword.exe
/t"e:\documents\dbOfferte.dot"
(the "/t" is the flag for the word command line that provides word with the
default template, otherwise it thinks you're giving it the document you want
to edit). For more information on the word command line switches, open word
and search for "startup switches" in the help. Hope this helps. If not, post
back.
 
Back
Top