using Office 365. I have a workbook the macro I wrote isn't showing up in the view macros box.

Abderrazaq Abbaouy 20 Reputation points
2025-08-12T16:57:56.27+00:00

Office 365. In Excel workbook the macro I wrote isn't showing up in the view macros box. the file is saved as xlsm.

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments
{count} votes

Accepted answer
  1. triptotokyo-5840 36,616 Reputation points Volunteer Moderator
    2025-08-12T19:26:42.7966667+00:00

    I_have_a_workbook_the_macro_I_wrote_isnt_showing_up_in_the_view_macros_box - Is it a Private Sub - If YES then it won’t show up there.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Diane P 3,135 Reputation points Independent Advisor
    2025-08-12T17:37:09.98+00:00

    Are you looking at "all open workbooks" at the bottom of the Macros dialog?

    Is your macro security blocking macros? Check in Excel's File > Options > Trust Center > Trust center settings.

    Did you save the workbook after writing the macro? (I've done this more than once, usually after editing a macro.)

    Is it an automatic macro? Macros with names in the form of "Sub Macroname(something as string)" won't show up in the macro list, you need to open the VBA Editor to see the macro or run it from another macro that you can see.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.