Excel Tutorial
20120807
method to determine Last Column with Data, in one row
Sub LastColumnWithData_xlToLeft()
Dim lastColumn As Integer
lastColumn = ActiveSheet.Cells(2, Columns.Count).End(xlToLeft).Column
MsgBox lastColumn
End Sub
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment