+ Reply to Thread
Results 1 to 3 of 3

Macro that calls other macros in different sheets (Mudraker)

  1. #1
    Registered User
    Join Date
    04-29-2007
    Location
    Lisbon, Portugal
    Posts
    58

    Macro that calls other macros in different sheets (Mudraker)

    Dear Mudraker,

    I've tried your code but it only worked with slight changes. that is before running the macros I have to change to the correspondent sheet, using the instruction Sheets("BC" & i4Cnt).Select. The final code produced was the following:

    Please Login or Register  to view this content.
    My question now is if it is possible to change the code so that it works with any workbook name (different from ModeloLCC_3.xls).

    Many thanks for your help

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    It should it is only a matter of knowing what the book name is

    If it is the same book as the macro is in then you can change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Please note in my version of Excel it runs without the ' at the start of the workbookname.

    If it is different then you will need to provide the workbookname via a variable
    in leiu of ThisWorkbook.Name
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    04-29-2007
    Location
    Lisbon, Portugal
    Posts
    58
    Thank you, once again.

    Working in perfection!

+ 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