kleavitt95
New Member
- Joined
- Aug 26, 2019
- Messages
- 1
I built a macro in Excel 2010 that does a Vlookup from one spreadsheet to another, and when the macro is run, a popup box appears and lets the user click which tab they want the macro to perform the Vlookup on. I used the following code and it was simple and very effective.
Dim cbTool as CommandBar
Set cbTool = CommandBar("Workbook Tabs")
cbTool.ShowPopup
This worked perfectly until my boss upgraded to Excel 2013 and running this macro now returns the error "Method 'ShowPopup' of object 'CommandBar' failed." Clearly something in Excel 2013 has changed since it's still working in Excel 2010.
I've looked everywhere trying to find replacement code to achieve this in Excel 2013 but haven't had any luck. Any ideas what code I could use to pop up a list of all workbook tabs in the middle of a macro so the user can select a tab? Thank you!!
Dim cbTool as CommandBar
Set cbTool = CommandBar("Workbook Tabs")
cbTool.ShowPopup
This worked perfectly until my boss upgraded to Excel 2013 and running this macro now returns the error "Method 'ShowPopup' of object 'CommandBar' failed." Clearly something in Excel 2013 has changed since it's still working in Excel 2010.
I've looked everywhere trying to find replacement code to achieve this in Excel 2013 but haven't had any luck. Any ideas what code I could use to pop up a list of all workbook tabs in the middle of a macro so the user can select a tab? Thank you!!