+ Reply to Thread
Results 1 to 4 of 4

application.run doesn't work

  1. #1
    Registered User
    Join Date
    06-01-2006
    Posts
    19

    application.run doesn't work

    I have a macro that opens another Excel spreadsheet (Workbooks.Open Filename:="F:\Compass\Compass Form7.xls", UpdateLinks:=3), then runs another macro (Application.Run OpenFormSevenFile). The macro, however, does not run. I have also tried the following without successs:

    Application.Run ("Compass Form7.xls!OpenFormSevenFile")
    Call OpenFormSevenFile
    OpenFormSevenFile

    Any suggestions?

  2. #2
    Dave Peterson
    Guest

    Re: application.run doesn't work

    Maybe...

    Application.Run "'compass form7.xls'!OpenFormSevenFile"

    (note the additional apostrophes.)


    grantj wrote:
    >
    > I have a macro that opens another Excel spreadsheet (Workbooks.Open
    > Filename:="F:\Compass\Compass Form7.xls", UpdateLinks:=3), then runs
    > another macro (Application.Run OpenFormSevenFile). The macro, however,
    > does not run. I have also tried the following without successs:
    >
    > Application.Run ("Compass Form7.xls!OpenFormSevenFile")
    > Call OpenFormSevenFile
    > OpenFormSevenFile
    >
    > Any suggestions?
    >
    > --
    > grantj
    > ------------------------------------------------------------------------
    > grantj's Profile: http://www.excelforum.com/member.php...o&userid=35021
    > View this thread: http://www.excelforum.com/showthread...hreadid=547573


    --

    Dave Peterson

  3. #3
    Registered User
    Join Date
    06-01-2006
    Posts
    19

    It works, thanks

    Application.Run "'Compass Form7.xls'!OpenFormSevenFile"

  4. #4
    Dave Peterson
    Guest

    Re: application.run doesn't work

    Is this a sign that it worked or failed?

    grantj wrote:
    >
    > Application.Run "'Compass Form7.xls'!OpenFormSevenFile"
    >
    > --
    > grantj
    > ------------------------------------------------------------------------
    > grantj's Profile: http://www.excelforum.com/member.php...o&userid=35021
    > View this thread: http://www.excelforum.com/showthread...hreadid=547573


    --

    Dave Peterson

+ 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