Think this works
VBA Noob![]()
Sub Macro4() Dim ColNum As Integer ColNum = Selection.Cells(1, 1).Column Selection.End(xlToLeft).Select MsgBox Abs(ActiveCell.Column - ColNum) End Sub
Think this works
VBA Noob![]()
Sub Macro4() Dim ColNum As Integer ColNum = Selection.Cells(1, 1).Column Selection.End(xlToLeft).Select MsgBox Abs(ActiveCell.Column - ColNum) End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks