Try something like this:
This will get you the last column.![]()
Sub test() Dim lastcol as integer lastcol = Cells(1, Columns.Count).End(xlToLeft).Column some other code
Try something like this:
This will get you the last column.![]()
Sub test() Dim lastcol as integer lastcol = Cells(1, Columns.Count).End(xlToLeft).Column some other code
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks