Results 1 to 3 of 3

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

Threaded View

  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:
    Private Sub Project_Filter(ByVal proj As String, ByVal proj_col As Integer)
    The line to call the sub is:
    Run ("Project_Filter", "CAR_PAR", 13)
    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.

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