Excel Tutorial
20120728
UsedRange method to find number of used columns in a worksheet
Sub UsedColumns_UsedRange()
Dim usedColumns As Integer
usedColumns = ActiveSheet.UsedRange.Columns.Count
MsgBox usedColumns
End Sub
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment