still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 821
- Office Version
- 365
- Platform
- Windows
Hi
I have a macro highlight a cell in A that has the current date when the sheet opens. I want to have and arrow inserted 4 cells to the right
I used the record a macro to insert an arrow in the proper cell.
It works great, except it drops down 44 cells and inserts the arrow. then it goes back up to where it was supposed to insert it and moves to the left like its supposed to.
I can't see why it drops 44 cells
mike
I have a macro highlight a cell in A that has the current date when the sheet opens. I want to have and arrow inserted 4 cells to the right
I used the record a macro to insert an arrow in the proper cell.
VBA Code:
Sub forarrow()
' make arrow
ActiveCell.Offset(0, 4).Range("A1").Select
ActiveSheet.Shapes.AddShape(msoShapeLeftArrow, 247.2, 75.6, 52.8, 17.4).Select
With Selection.ShapeRange.Fill
.Visible = msoTrue
.ForeColor.RGB = RGB(255, 0, 0)
.Transparency = 0
.Solid
End With
ActiveCell.Offset(0, -4).Range("A1").Select
End Sub
I can't see why it drops 44 cells
mike