Doug Studebaker
New Member
- Joined
- Mar 12, 2019
- Messages
- 4
I have created a tool that presents charet views based on which shape or combination of shapes is selected by user. Each shape is a toggle that turns a chart element on or off. The tool is replicated for multiple data sets. The shapes will not accept an onaction assignment. The problem is (apparently) that during development and now use, the workbook was copied and renamed over and over and the shapes' properties don't permit assignment or re-assignment of macros from the old workbook to new ones.
I have tried several approaches none of which has worked.
Approach 1:
Approach 2:
Approach 3:
I have tried several approaches none of which has worked.
Approach 1:
Code:
With ActiveSheet.Shapes("Name.Func")
.TextFrame.Characters.Caption = "Display"
.OnAction = "Macro_Name"
End With
Approach 2:
Code:
ActiveSheet.Shapes.Range(Array("Group_Name")).Select
ActiveSheet.Shapes.Range(Array("Name.Func")).Select
Selection.OnAction = "'" & Client-ID Visual VerNum.xlsm & "'!Show_Average"
Code:
shpTemp.OnAction = "'" & "Client-ID Visual VerNum.xlsm" & "'!Show_Average"
Last edited by a moderator: