+ Reply to Thread
Results 1 to 6 of 6

how to run Excel from VB macro

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    11

    how to run Excel from VB macro

    I am using Excel 2003. I am in the vb macro and would like to fire off my next program. It is also an Excel workbook. Can anyone guide me in this?

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: how to run Excel from VB macro

    Hi Walt,

    Insert this code into the macro (and change the file name and path where indicated):
    Please Login or Register  to view this content.
    Hope this helps

  3. #3
    Registered User
    Join Date
    08-26-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: how to run Excel from VB macro

    Thanks for the suggestion, but it did not work for me. Here is where I am trying it:

    My directory has exactly 5 files in it-
    Select.xls
    index5.html
    SelectAI.xls
    lists.csv
    lists.txt

    The macro I am working in is Select.xls
    Here is where I placed your suggestion-
    Please Login or Register  to view this content.
    Here are a couple more items that may harm or help:
    my goal is to move this to a web page
    I am very glad you did not suggest using Shell, becausse I want to avoid this.
    Last edited by Walt Horn; 08-27-2013 at 05:46 PM.

  4. #4
    Registered User
    Join Date
    08-26-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: how to run Excel from VB macro

    I forgot to add the program name. It works great now

    Set WB = Workbooks.Open(filePath & "/SelectAI.xls")

    Many thanks.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to run Excel from VB macro

    Walt,

    Please take a few minutes to read the forum rules, then edit your posts to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: how to run Excel from VB macro

    No worries Walt.

    Please don't forget to mark this thread as solved, and please click on the * next to my post to say thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Requesting help in Excel Macro Tutorial/Basic Steps in creating a Macro in Excel
    By rhaiyan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2013, 09:21 PM
  2. Replies: 2
    Last Post: 11-26-2012, 08:33 AM
  3. Excel Macro (excel for mac 2010) - update multiple excel books on criteria
    By genichigo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 07:23 AM
  4. Excel 2003 Macro --> Excel 2000 Macro
    By Tejas.T in forum Excel General
    Replies: 2
    Last Post: 10-21-2012, 07:57 AM
  5. Macro using file dialog opener - Cannot delete or rename folder when excel macro is
    By startrekremo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2011, 01:57 AM

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