+ Reply to Thread
Results 1 to 6 of 6

1 macro built of smaller macros

  1. #1
    Registered User
    Join Date
    10-10-2006
    Posts
    50

    1 macro built of smaller macros

    hi folks, kind of a silly question here but what is the syntax for inserting small specialized macros into a larger macro.

    I built smaller macros to perform specific tasks that will most likely change with semi-regularly so to make edits easier I kept the tasks seperate.

    But now I need to string them into a single master macro.

    If all the macros are contained in the workbook where they will be used do I still use the Application.Run command?


    It seems that the sub macro() heading makes it comparable to PhP functions but I'm not sure what the VBA syntax is to call the sub.

    Anyone dig the vibe?


  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Application.Run "macro" will work. You can also use Call macro.

  3. #3
    Registered User
    Join Date
    10-10-2006
    Posts
    50
    Quote Originally Posted by jasoncw
    Application.Run "macro" will work. You can also use Call macro.

    so the syntax would be

    Please Login or Register  to view this content.
    ?

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    No, it would be simply:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-10-2006
    Posts
    50

    Sweet

    I did not know that one.

    Thanks,

  6. #6
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    No problem.

+ 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