Cannot assign macro to button

SPS41

New Member
Joined
Feb 21, 2023
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I have an excel workbook called Bill of Materials (BOM), which contains a lot of macros and I have always had buttons call certain macros. My BOM excel sheet basically uses power query to organize data sourced from a workbook called Masterlist and throws it on a new sheet (on the BOM workbook). Then a v lookup copies relevant data from that new sheet on my active worksheet (again on the BOM wb).
But my issue starts here. My BOM workbook worked fine until I moved my Master list excel sheet to one drive, it’s like I broke the whole BOM workbook. My macro works but the button will not execute the macro no matter how many times I assign the macro to it or how many new buttons I create and try to assign the same macro.
I know there are some issues with excel and one drive but I don’t know if that’s what broke the sheet?
All the macros work fine, I just cannot add it to a button.
Let me know if you need more info. I can attach prices of relevant code but I don’t know if that will help. I can if need be.
Thanks in advance for all your help!
 
And you can manually run the code from the VBA Editor or from alt+F8? If so, maybe a reboot is needed?
Reboot worked. I have been tearing my hair out for the past 4 days. I going to go meditate now lmao!
Thanks for all the help guys! You’ve really helped me out. Appreciate the time and effort.

Thanks again!
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,224,813
Messages
6,181,112
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top