Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Webtest
 
Posts: n/a
Default How to: Pass Command Line Parameter ???

Esteemed Forum Participants and Lurkers:
===============================
Excel 2003 VBA

I vaguely recall having done this somewhere in the way distant past ... can
I pass a general purpose variable (department name string in this case) as a
Command Line Parameter to Excel? Right now I have 6 different workbooks for
6 departments with macros, and I want to consolidate them all into one
workbook with 6 shortcuts, where the shortcut provides the department via a
Command Line Parameter. Except for the department name and folder path, the
Macro is identical for each department. I know I can specify a startup file
in the Command Line, but can I use a general purpose parameter? Isn't there
some way to fetch the parameter in the Workbook Open event?

Is there perhaps an API call that can fetch the command line so that I can
extract my parameter?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i enable the Query Parameter menu option on the External D. Saleha Excel Discussion (Misc queries) 0 August 23rd 05 09:28 AM
How to pass a workshhet name as a parameter into a subroutine ? yigalb Excel Discussion (Misc queries) 4 January 9th 05 10:28 AM
Wildcard parameter in excel BJC Excel Discussion (Misc queries) 1 December 24th 04 12:16 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
Changing a Parameter Of A Formula Sunnous Excel Worksheet Functions 1 October 28th 04 03:29 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"