Hi All,
I've dabbled and I'm currently working on an onboarding sheet with chevron shapes placed at different dates in a calendar. I have one chevron that always needs to be placed below the April 9th column. If I change the date on one sheet it updates all the dates in the calendar sheet I created, and I want the chevron to move automatically horizontally with that one date in the calendar. My macro code is below,
Sub Check()
Dim rng As Range
Set rng = Sheets("Calendar").Range("G5:FI5")
For Each Cell In rng
If Cell.text = "9-Apr" Then
ActiveSheet.Shapes("45_days_training").Left = rng.Left
End If
Next
End Sub
The code is very simple and the problem line seems to be the ActiveSheet.Shapes line. I need to specify the cell text "Apr-9" as the value I want the chevron to move to. I can't seem to work out what the line should say to stick with that date value along the 5th row.
Thanks,
Simon
I've dabbled and I'm currently working on an onboarding sheet with chevron shapes placed at different dates in a calendar. I have one chevron that always needs to be placed below the April 9th column. If I change the date on one sheet it updates all the dates in the calendar sheet I created, and I want the chevron to move automatically horizontally with that one date in the calendar. My macro code is below,
Sub Check()
Dim rng As Range
Set rng = Sheets("Calendar").Range("G5:FI5")
For Each Cell In rng
If Cell.text = "9-Apr" Then
ActiveSheet.Shapes("45_days_training").Left = rng.Left
End If
Next
End Sub
The code is very simple and the problem line seems to be the ActiveSheet.Shapes line. I need to specify the cell text "Apr-9" as the value I want the chevron to move to. I can't seem to work out what the line should say to stick with that date value along the 5th row.
Thanks,
Simon