Consulting

Results 1 to 2 of 2

Thread: Call a Macro from another Worksheet

  1. #1
    VBAX Regular
    Joined
    Sep 2010
    Posts
    13
    Location

    Question Call a Macro from another Worksheet

    Hello everyone,

    I have a piece of VBA script that I compiled & it works. I have a function in another worksheet that works perfectly fine too. My problem is either within the function or after it I'm trying to call the Macro that I compiled in another Worksheet to Activate. The reason I'm doing this is because the function runs by a button, so if I put it within the function it will automatically call the Macro and do the function in the other worksheet. I am trying to automate the whole process hence I'm doing this.

    I'm not sure if anyone would suggest a sub-routine, but I don't know how to go about that. If anyone could help me out I would really appreciate.

    Thanks

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Move the code to a Sub in Module and Call the Sub as needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •