+ Reply to Thread
Results 1 to 3 of 3

Module name in macro title

  1. #1
    Registered User
    Join Date
    06-03-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Module name in macro title

    Hello,

    I have about a dozen macros that I am trying to combine into one module for ease of export/sharing. After putting them all in one module ("Module1"), the various macros become listed as "PERSONAL.XLSB!Module1.MacroTitle" in Excel. The issue is the inclusion of the module name. Several of the macros run each other, but now they can't find each other because the code lists them as "PERSONAL.XLSB!MacroTitle" without the module name.

    Somebody please help. I hope I've explained clearly enough, but if any more clarification is needed let me know.

    Thank you.

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Module name in macro title

    When you recorded the macros, did you specify to "Store the Macro" in "Personal Macro Workbook"? If they are now all in a single standard module, just change the titles and the references to each within your code and you should be good to go. The VBE has a find and replace just like the application via CTRL+F, which should help.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Registered User
    Join Date
    06-03-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Module name in macro title

    Thanks for your reply, I appreciate your help! I had just resolved the issue. I still had all the individual modules in addition to the consolidated one. Once I deleted the individual ones, the names went back to normal.

    Thanks again!

    AJ

+ 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