+ Reply to Thread
Results 1 to 2 of 2

Calling Subroutine from Another Open Workbook Failing

  1. #1
    Registered User
    Join Date
    12-26-2011
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    45

    Calling Subroutine from Another Open Workbook Failing

    I was looking at this article: http://www.vbaexpress.com/kb/getarticle.php?kb_id=279

    The code they use to call the function is:

    Please Login or Register  to view this content.
    I modified the function to look like this as I do not return a value with my subroutine:

    Application.Run macros.xls!sampleMacro( WBName, SheetName, ColumnLetter)

    and I received this error, "Object Required". Where is my syntax wrong?

  2. #2
    Registered User
    Join Date
    12-26-2011
    Location
    San Francisco
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Calling Subroutine from Another Open Workbook Failing

    I think I figured it out:

    Application.Run "macros.xls!sampleMacro", TargetName, SheetName, ColumnLetter

+ 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