Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Starting word macro with command line arguments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nandini - 23 Mar 2005 10:17 GMT
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
Helmut Weber - 23 Mar 2005 16:48 GMT
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/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.