×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Running VBA macro in Excel from Command Line

Running VBA macro in Excel from Command Line

Running VBA macro in Excel from Command Line

(OP)
Can a VBA macro in Excel 2K be run from a command line? I assume that the Excel workbook and VBA IDE is already open and running. I just need to run a specific Sub function in a module of the workbook project in a DOS command line. I'm a novice of VBA. Sorry if this question doesn't make sense at all. Any idea would be appreciated.

RE: Running VBA macro in Excel from Command Line

DOS command line interfaces with the OS via streams called STDIN and STDOUT. These are not easily accessible to Windows environment. If you're prepared for some serious work there are a few clues on how to start in our sister site for computer professionals. You could start with http://www.tek-tips.com/viewthread.cfm?qid=255803 and then do search on that forum for STDIN and STDOUT

Warning - you're in for some heavy stuff!

Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
Steam Engine enthusiasts
Steam Engine Prints

RE: Running VBA macro in Excel from Command Line

Does it have to work with Excel, or could the macro be rewritten in VBScript?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources