Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Word document problem
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 |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Word document problem
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. On Mon, 18 Jun 2007 13:38:46 -0700, wrote: 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 |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Word document problem
On Jun 18, 8:14 pm, Jay Freedman wrote:
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. On Mon, 18 Jun 2007 13:38:46 -0700, wrote: 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- Hide quoted text - - 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 |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Word document problem
On Mon, 18 Jun 2007 13:38:46 -0700, wrote:
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- Hide quoted text - - 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 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 FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problem saving word document with linked excel document | Microsoft Word Help | |||
problem with word document | New Users | |||
problem with new word document. | Microsoft Word Help | |||
Problem printing Word document | Page Layout | |||
Word Document Problem | Microsoft Word Help |