I have a table of data. The only odd thing about it, I suppose, is that column A is not completely filled with data. There's an entry ever 2 to 50 rows; it just depends and it's not something I can depend on.
I'm trying to create a structured table around this set of data. The ActiveCell is cell A1, and I do have headers. There's three columns of data and columns B and C are completely filled.
When I run the code:
Set rTable = Range(ActiveCell, ActiveCell.SpecialCells(xlCellTypeLastCell))
rTable.Select
The range includes the first three columns... and four more columns after that. UNLESS I run the code in debug mode and SAVE the spreadsheet just before I set the range.
I can't figure out why. Anyone know why this is happening? I guess I could add the 'save spreadsheet' code in the macro but I would really, really not like to do that.
Thanks!!
Matt
I'm trying to create a structured table around this set of data. The ActiveCell is cell A1, and I do have headers. There's three columns of data and columns B and C are completely filled.
When I run the code:
Set rTable = Range(ActiveCell, ActiveCell.SpecialCells(xlCellTypeLastCell))
rTable.Select
The range includes the first three columns... and four more columns after that. UNLESS I run the code in debug mode and SAVE the spreadsheet just before I set the range.
I can't figure out why. Anyone know why this is happening? I guess I could add the 'save spreadsheet' code in the macro but I would really, really not like to do that.
Thanks!!
Matt