Word document problem

M

manishraichur

Hi
I have a batch file which opens a word document.

C:\\MSWord.lnk c:\filename.doc /mname

filename is a mail merge doc

What does /mname stands for ("name" is used as an example )?

Normal working scenario is it should open the word document..preview
it and closes it.,but on 2 of the machines word just stays open after
opening the document

Any ideas?

Thanks
 
J

Jay Freedman

The /m switch tells Word to run the macro whose name follows the m.
That macro must be available at the time the document opens, so most
often it's in the Normal.dot template.

Probably the macro named in your batch file is missing from the two
computers that don't work the same way as the others.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
M

manishraichur

The /m switch tells Word to run the macro whose name follows the m.
That macro must be available at the time the document opens, so most
often it's in the Normal.dot template.

Probably the macro named in your batch file is missing from the two
computers that don't work the same way as the others.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.











- Show quoted text -

Thanks a lot for your help.I was suspecting it might a macro issue.
So how do i go about finding that macro?
i saw the Normal.dot file on the working computer,but was not able to
see anything.

Thanks
 
J

Jay Freedman

Thanks a lot for your help.I was suspecting it might a macro issue.
So how do i go about finding that macro?
i saw the Normal.dot file on the working computer,but was not able to
see anything.

Thanks

On one of the machines that work, do this:

- Open the document file listed in the batch command, using the File > Open
dialog instead of the batch file.

- Open the Macros dialog (Tools > Macro > Macros or Alt+F8).

- Open the "Macros in" dropdown. Select each of the templates in the
dropdown, until you find one that causes the list to show the name of the
macro in the batch command.

- Locate that template and copy it to the machines that don't work.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top