Consulting

Results 1 to 2 of 2

Thread: run macro in workbook1 then go to workbook2 to run macro

  1. #1

    run macro in workbook1 then go to workbook2 to run macro

    I need to run a code in workbook1, then go to workbook 2 and run another code. Without having to go between workbooks. Is there a way?

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Welcome to the forum!

    I am not clear about your goal. Please be more specific. e.g. Workbook1 is ActiveWorkbook. It opens Workbook2 and runs Workbook1's Module1.UpdateStuff macro for "Sheet2" in each of the two workbooks. It then saves and closes Workbook2.

    If you want to run a macro in another Workbook from an other Workbook, use Application.Run().

Posting Permissions

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