+ Reply to Thread
Results 1 to 17 of 17

Excel macro does not show up in Macro list

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    4

    Excel macro does not show up in Macro list

    I made a macro, works fine, shows up in the macro drop-down list.
    I saved that workbook as an add-in.
    Now, opening a new workbook, Alt-F11 and I can see the add-in, and my code is right there in the module where it should be.
    But - when I click on the Macros drop-down, it's empty.
    If I manually type the name of my macro in to the macro list box, it runs.
    Why does it not show up?
    It is not private, it starts like this:
    Please Login or Register  to view this content.
    Thanks in advance -
    Dan
    Last edited by JBeaucaire; 02-05-2013 at 03:04 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel macro does not show up in Macro list

    Hi Dan,

    welcome to the forum.
    As per my knowledge, your current workbook has your existing workbook as an add-in and hence it is there as an installation but it is not there as macro and hence should not be showing because your current workbook never had this. This is tricky but I hope u got it.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Excel macro does not show up in Macro list

    Hi Dan,

    When you open the Macro dialog (Alt + F8) make sure the All Open Workbooks is selected from the Macros in listbox.

    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Registered User
    Join Date
    02-05-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel macro does not show up in Macro list

    Thanks but I have checked that (All Open Workbooks), and it doesn't help. Any other ideas?

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel macro does not show up in Macro list

    Hi dnmeeks, did you checked my post#2 ?


    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Registered User
    Join Date
    02-05-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel macro does not show up in Macro list

    Thanks, yes I saw it, but I don't think I understand the issue. My understanding is that you are supposed to use a sheet as an "add-in" if you want to be able to use the macro(s) in other sheets. Is that not right? I just want to have this macro available whenever I open a new sheet. Thanks!

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel macro does not show up in Macro list

    Okay.. let me summarize it here:-
    -You created a macro (vba) and you saved the workbook as xla.
    -now you wish to use this macro (or say the workbook containing macro) as an add-in in some other workbook.
    -you opened your other workbook and browsed xla file and installed it. Now it should appear as a button (menu / ribbon bar) if you designed it that way or whatever customization you done to use that. If you wish you can search internet on how to transfer xla on menu / ribbon bar

    You cannot see :-
    the macro if your bring macro list box (alt + f8), see below what Microsoft is saying:-
    "Excel Add-in (XLA) is really an Excel Workbook (*.xls) that does not contain any worksheets. The only part of the file that is used by Excel is the Visual Basic for Applications (VBA) project sub-storage, which contains the add-in (VBA) code.
    http://support.microsoft.com/kb/268016"

    You can SEE:-
    if you press Alt + F11 (VB Editor), you should find your xla workbook listed on left side.

    Below method can be used to convert an xla back to xlsx / xls :-
    http://support.microsoft.com/kb/211561

    hope this helps

    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Registered User
    Join Date
    02-05-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Excel macro does not show up in Macro list

    Thank you DILIPandey -
    I think I understand that. Is there some way to make my macros available every time I open a new workbook? I have tried addins, and I have tried making a "personal.xls" and placing it in the XLSTART subdirectory. In both cases I see that the macro is there (Alt-F11), but the macros do NOT show up in the macros drop-down. Why is this so convoluted and hard to figure out? I would think this is a fundamental issue which should have been answered a thousand times by now. It is really frustrating. Sometimes I think they make it intentionally difficult to discourage the "layman" from writing code. Sorry for the rant... Thanks for the help!

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel macro does not show up in Macro list

    but the macros do NOT show up in the macros drop-down.
    why you want macro to show up, when you have your macro in personal.xls you can still use that.
    and for add-in, so that it appears every time, did you created that add-in to appear as a menu / ribbon button ?

    Regards,
    DILIPandey
    <click on below * if this helps>

  10. #10
    Registered User
    Join Date
    01-10-2013
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel macro does not show up in Macro list

    I am having the same problem. I made changes to an add-in that was currently on my ribbon. It forced me to save it as a new name. Then I went into the add-in manager and clicked the check. It is now showing up in vb where I can run the macro, but it is not showing up in the drop down list so that I can run it from excel.

    I have since fixd it somehow.

    I am not sure which of these fixed it. So maybe this will help

    Renamed the file
    Moved it out of the add in directory
    closed excel
    moved it back into the add indirectory
    opened the excel and went into the window options and into the addin go
    Finally it was not there so I searched to the add in and added it.
    from there i was able to add the macro back to the ribbon.
    Last edited by jgross; 01-22-2014 at 10:22 AM.

  11. #11
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel macro does not show up in Macro list

    jgross,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  12. #12
    Registered User
    Join Date
    01-10-2013
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Excel macro does not show up in Macro list

    arlu. The persons issue was unresolved. I had the same question and issue I was trying to explain the issue more for the first person. So it is the same question. The advice that person got was unhelpful, but if the advisor read what i said and answered it would answer the original question. If I post it to a new question it will not help the first person.

  13. #13
    Registered User
    Join Date
    01-01-2021
    Location
    Vienna, Austria
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Excel macro does not show up in Macro list

    Anybody still interested in a solution?

  14. #14
    Registered User
    Join Date
    11-18-2015
    Location
    Maine, USA
    MS-Off Ver
    2003 & 2016
    Posts
    1

    Re: Excel macro does not show up in Macro list

    Yes, very interested in the solution

  15. #15
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Excel macro does not show up in Macro list

    Macros in add-ins do not show up in the macros dialog. You need to provide a way to run them - usually through a menu system of some kind (eg customising the Ribbon).
    Rory

  16. #16
    Registered User
    Join Date
    01-01-2021
    Location
    Vienna, Austria
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Excel macro does not show up in Macro list

    I applied a very rudimentary way:

    1. open the .xlsm workbook in error
    2. save the workbook as .xlsx EXCEL file
    3. close EXCEL
    4. open the xlsx file
    5. open the .xlsm file
    6. in the .xlsm file go to the "Developer" menue and click "Visual Basic"
    now you should see the macro modules in the .xlsm workbook
    7. select the module you want to recover
    8. select all by Ctrl_A and copy it by Ctrl_C
    9. change to the open .xlsx file
    10. select "Developer" menue
    11. click "Macros" button
    12. set the option "Macros in this workbook"
    13. type a name into the "name field" and click the "Create" button
    14. delete all in the opening new module window
    15. type Ctrl_V to put the copied content of the module from the .xlsm file

    Now you have the module in the .xlsx file.
    You need to repeat that for all modules, if there are more in the none-working .xlsm fole.

    Finally you need to safe the new workbook as .xlsm to enable the macros in the new workbook.
    If you now click the "Macros" tab in the Developer menue the macro list should appear as usual.

    good luck
    Gerhard

  17. #17
    Registered User
    Join Date
    04-16-2021
    Location
    Moscow
    MS-Off Ver
    2019
    Posts
    1

    Re: Excel macro does not show up in Macro list

    I had the same issue. Then I realized that my Sub is stated as private:

    Please Login or Register  to view this content.
    So if you want it being visible in the macro dialog box, just remove "Private", but be sure your code still works.

+ 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