+ Reply to Thread
Results 1 to 3 of 3

Will Running a Macro Within Another Macro use variables?

  1. #1
    Registered User
    Join Date
    11-23-2008
    Location
    Idaho
    Posts
    8

    Will Running a Macro Within Another Macro use variables?

    Will running a Macro from within another macro allow the second macro use the first one's variables?

    Example:

    Macro A Starts

    Variable x set

    Macro B starts

    Macro B uses x from Macro A

    Macro B ends

    Macro A ends
    Last edited by aiwasoundsystem; 12-05-2008 at 09:10 PM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    One generally passes it to the other. You can use Public variables if needed.

    Case 1 example:
    Please Login or Register  to view this content.
    Case 2 Example:
    At the top of a Module:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-23-2008
    Location
    Idaho
    Posts
    8
    Thanks for the info I'll give it a go and see how it goes. Just trying to clean up some code so I don't have to duplicate code. I'll mark this solved if it works out.

    Thanks much!

+ 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