AnneWeber
New Member
- Joined
- Sep 11, 2024
- Messages
- 1
- Office Version
- Prefer Not To Say
- Platform
- Windows
Hello,
I recorded a macro just clearing inputs in my file that I'm working with and I've inserted a button onto the sheet and done the 'assign macro' step but it doesn't run my macro. I'm not getting any error or anything, the button does nothing. The macro works if run it from the 'View Macro' option on the ribbon but I can't get it to be assigned to the button. I've tried both a button and a shape. I've gotten it to work if I am assigning the macro to the button and titling it 'Workbook name YYYY.xlsm'!Clear (clear is what my macro name is) but if I do it this way and I make edits in the future and rename the workbook, I'm worried the button won't work.
I recorded a macro just clearing inputs in my file that I'm working with and I've inserted a button onto the sheet and done the 'assign macro' step but it doesn't run my macro. I'm not getting any error or anything, the button does nothing. The macro works if run it from the 'View Macro' option on the ribbon but I can't get it to be assigned to the button. I've tried both a button and a shape. I've gotten it to work if I am assigning the macro to the button and titling it 'Workbook name YYYY.xlsm'!Clear (clear is what my macro name is) but if I do it this way and I make edits in the future and rename the workbook, I'm worried the button won't work.