Starting word macro with command line arguments

N

Nandini

I am trying to create a word maco to create tables. I wanted to pass no of
rows and columns as command line arguments when starting the macro. I tried
using 'GetCommandLine' function provided in the Visual Basic help in Windows
2000. But did not help. Is there any other way to achieve this ?

Thanks,
Nandini
 
H

Helmut Weber

Hi Nandini,

too often I've read about problems using this approach.
So I abandoned it altogether. Why not using
a txt-file, that holds all the parameters you need,
and much more then a commandline can handle.
Have the macro read the information it needs from the txt-file.
And might be easier to maintain, too.

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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

Top