Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
[email protected] manishraichur@gmail.com is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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   Report Post  
Posted to microsoft.public.word.newusers
[email protected] manishraichur@gmail.com is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem saving word document with linked excel document Meltad Microsoft Word Help 5 September 13th 06 04:27 PM
problem with word document funky gibbon New Users 1 May 6th 06 11:00 PM
problem with new word document. ereyes Microsoft Word Help 1 May 5th 06 02:32 AM
Problem printing Word document TreeTrunk Page Layout 3 March 6th 06 04:46 AM
Word Document Problem Kevin Microsoft Word Help 2 September 21st 05 06:51 PM


All times are GMT +1. The time now is 04:02 AM.

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"