Hoping there is an easy solution. I want the shape (arrow) to be copied into any cell that gets selected.
This seems to work ok UNLESS I select a cell that contains a dropdown BEFORE I select B2. Clicking Debug shows .OnAction = "" is an issue in my code
I noticed that in the selection pane, when I click from A2 (dropdown cell) to B2...it adds 'Drop Down 20'. This seems to be an issue. I can click SAVE and this 'Drop Down 20' goes away and everything works again.
Is there anything that can be added/modified in the code below so that 'Drop Down 20' (or whatever cell with a drop down was selected at some point) goes away when clicking on the 'arrow' (macro)?
- Selected cell B2
- Click on the arrow in B1 (macro)
- Code is run to copy the arrow in B1 and place in B2 (the selected cell)
This seems to work ok UNLESS I select a cell that contains a dropdown BEFORE I select B2. Clicking Debug shows .OnAction = "" is an issue in my code
I noticed that in the selection pane, when I click from A2 (dropdown cell) to B2...it adds 'Drop Down 20'. This seems to be an issue. I can click SAVE and this 'Drop Down 20' goes away and everything works again.
Is there anything that can be added/modified in the code below so that 'Drop Down 20' (or whatever cell with a drop down was selected at some point) goes away when clicking on the 'arrow' (macro)?
VBA Code:
Sub Arrow()
Dim Sh As Shape
With ActiveSheet
ActiveCell.Activate
.Shapes("Arrow").Copy
.Paste 'inital position at selected cell
Set Sh = .Shapes(.Shapes.Count) 'the newest shape
End With
With Sh
Sh.Name = "Arrow2"
.OnAction = ""
End With
End Sub