itsthecheese
Programmer
Happy New Year All, I need your help with something I've really struggled with... plus I'm a little green w/VBA so please bear with me...
I am manually copying certain worksheets into existing workbooks. Everything transfers over ok with the exception of Autoshapes -
Issue:
Original Template/AutoShape #1 is an arrow assigned to a macro that, when selected, changes the formatting for the current row
(Then I run a macro to reformat the workbook for general changes (cell references, print parameters, etc.)
New Worksheet/AutoShapes copy over perfectly, however their macros *stay* assigned to the original Template - thus creating an unwanted "link"
(i.e.: 'Selection Summary-SAVE AS TEMPLATE.XLT'!Sheet19.A1_Teal)
I then have to right-click each of the AutoShapes in the workbook and re-assign the macros manually (from "This Workbook" ... i.e.: Sheet20.A1_Teal)
- it would be great if I had a macro to reassign the all AutoShape macros in one fell swoop (since their are multiple incidences of this) ...
I've tried to record the macro however it returns with:
ActiveSheet.Shapes("AutoShape 64").Select
Selection.OnAction = "Sheet19.A2_Red"
which obviously fails.
I know someone out there has the answer... thank you in advance for your feedback and great support.
-Ellie
drive slow...steer fast
I am manually copying certain worksheets into existing workbooks. Everything transfers over ok with the exception of Autoshapes -
Issue:
Original Template/AutoShape #1 is an arrow assigned to a macro that, when selected, changes the formatting for the current row
(Then I run a macro to reformat the workbook for general changes (cell references, print parameters, etc.)
New Worksheet/AutoShapes copy over perfectly, however their macros *stay* assigned to the original Template - thus creating an unwanted "link"
(i.e.: 'Selection Summary-SAVE AS TEMPLATE.XLT'!Sheet19.A1_Teal)
I then have to right-click each of the AutoShapes in the workbook and re-assign the macros manually (from "This Workbook" ... i.e.: Sheet20.A1_Teal)
- it would be great if I had a macro to reassign the all AutoShape macros in one fell swoop (since their are multiple incidences of this) ...
I've tried to record the macro however it returns with:
ActiveSheet.Shapes("AutoShape 64").Select
Selection.OnAction = "Sheet19.A2_Red"
which obviously fails.
I know someone out there has the answer... thank you in advance for your feedback and great support.
-Ellie
drive slow...steer fast