I have a macro that takes you to the next open line in a series of data. I would like it to follow the current row you are in, so If I am in row 567, I would like the button to be somewhat close to that row. Any ideas?
I guess i wasnt clear. I want it to follow me, as I click a row. So it would vary. If cell A1000 is selected, I want the button to be in F1000, and so fourth.something like:
?Code:button1.top = Range("A567").top
ActiveSheet.Shapes("PartsButton1").Top = (ActiveCell.Row() * 18) - 18
Sub Move_Button()
'Modified 6/20/2019 4:11:41 PM EDT
Dim v As String
v = Application.Caller
With ActiveSheet.Shapes(v)
.Left = ActiveCell.Left
.Top = ActiveCell.Offset(5).Top
End With
End Sub