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
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks