+ Reply to Thread
Results 1 to 3 of 3

Specifying Arguments in Run ([Macro], [arg1],[arg2]...)

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Specifying Arguments in Run ([Macro], [arg1],[arg2]...)

    Hello,

    I'm trying to call a private sub with two arguments from another module in the same VBA project.

    The sub is:
    Please Login or Register  to view this content.
    The line to call the sub is:
    Please Login or Register  to view this content.
    However, I keep getting a compile error saying that it expects an equals sign. What am I missing?

    Thanks
    Last edited by rylo; 03-09-2010 at 06:44 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Specifying Arguments in Run ([Macro], [arg1],[arg2]...)

    Hi

    Remove the brackets and see how that goes.

    rylo

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-03-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    59

    Re: Specifying Arguments in Run ([Macro], [arg1],[arg2]...)

    Oh yay that works

    Thank you!

+ 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