+ Reply to Thread
Results 1 to 3 of 3

Shell command help

  1. #1
    Registered User
    Join Date
    01-17-2007
    Posts
    2

    Shell command

    I am trying to launch an application from an Excel spreadsheet using a macro and the VB shell function. I want to be able to pass the text from a cell to the macro as a command-line argument for the application.

    The solution from http://www.excelforum.com/showthread.php?t=579609 is close to what I need, but I need it to pass the actual text and have the application launch using the text as an argument.

    I appreciate any help.
    Last edited by VBA Noob; 03-09-2007 at 08:32 PM.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187
    Shell is fairly limited, the ShellExecute function will allow this. You will need to reference the Windows API library you will find many examples by Googling on ShellExecute.

    Hope this helps

  3. #3
    Registered User
    Join Date
    01-17-2007
    Posts
    2
    Unfortunately, I know nothing about programming so any insight on whats necessary to accomplish the task would be very helpful.

    Kind Regards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1