Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] billiejoefanclub@hotmail.com is offline
external usenet poster
 
Posts: 2
Default Batch file to run a macro in a word template

Hiya, I have a template sitting in my startup folder for microsoft
word. I want to create a batch file that opens up word and runs a
macro sitting in the template BUT without opening the template (ie.
equivalent of opening word and clicking on a template button that runs
a template macro).

this is what I have

@Echo off
start winword.exe /mEditBusinessPlanDocuments

but it just opens word and thats it..... is this even possible?

thank you in advance

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
[email protected] billiejoefanclub@hotmail.com is offline
external usenet poster
 
Posts: 2
Default Batch file to run a macro in a word template

greatly sorry if i put this in the wrong group.

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Batch file to run a macro in a word template

You need an autoexec macro if you want it to run automatically.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

wrote in message
ups.com...
Hiya, I have a template sitting in my startup folder for microsoft
word. I want to create a batch file that opens up word and runs a
macro sitting in the template BUT without opening the template (ie.
equivalent of opening word and clicking on a template button that runs
a template macro).

this is what I have

@Echo off
start winword.exe /mEditBusinessPlanDocuments

but it just opens word and thats it..... is this even possible?

thank you in advance



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to automate running a macro on a batch of documents? adna Microsoft Word Help 2 October 6th 06 08:58 PM
batch remove template data from old word documents OI66 Microsoft Word Help 0 November 10th 05 05:58 PM
Batch macro to change to A4 CJ Page Layout 2 August 16th 05 10:35 PM
open Word from with a batch file kbgrunt New Users 4 June 15th 05 07:56 PM
Batch File Conversion Error C Goebel Microsoft Word Help 0 March 8th 05 06:07 PM


All times are GMT +1. The time now is 10:19 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"