Okay, here's a problem I have been toying with for too long now.
I have an add-in that has a sheet that other office users can insert into their own workbook. This sheet originally had SHAPES on it assigned to macros within the worksheet code. Problems arise when a person inserts two of these sheets on the same workbook. I tried renaming the VBCompnonent Name (CodeName) before inserting any new sheet but that didn't work.
Next, I swapped all my SHAPES to cell HYPERLINKS and captured the cell name and used SELECT CASE to assign its relevant macro since hyperlinks were more related to the sheetname, not codename. This still didn't solve my problem.
In both cases, unless the macro was already triggered, it would point towards the newly inserted sheetcode. I've found one solution using BEFORE_DOUBLECLICK but I would rather not have to use this as a single click is more user friendly.
Any thoughts would be greatly appreciated!!
Cheers!
Bookmarks