Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Run a MSDos Command from Excel

I have created a very simple DIR batch file that list files in a given
folder w/subfolders to a TXT file. This I'd like to run by clicking a
object (menu button). Like if one where toassign a Macto to a image.

The path to the Batch file is looooong and there are looong folder
names..

Any ideas, tips or comments??

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Run a MSDos Command from Excel

Shell("path") is the VBA command to run an external program.



"FrodeOlsen" wrote:

I have created a very simple DIR batch file that list files in a given
folder w/subfolders to a TXT file. This I'd like to run by clicking a
object (menu button). Like if one where toassign a Macto to a image.

The path to the Batch file is looooong and there are looong folder
names..

Any ideas, tips or comments??


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
command code ( GOTO command) in formula calan New Users to Excel 1 June 11th 09 09:44 AM
Pivot Table Error Message - "Command Text not set for command obje Jeff Divian Excel Discussion (Misc queries) 0 November 7th 07 10:26 PM
Excel to load COMMAND and type a Run Command? [email protected] Excel Programming 5 August 22nd 06 10:47 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
starting a msdos exe from excel Juggernath[_2_] Excel Programming 1 January 21st 04 08:06 PM


All times are GMT +1. The time now is 08:29 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"