I've found, again, the best code (I think) for finding the first blank cell in a range, or in other words, the next cell after all data in the range, but I also want to select that column, and all columns to the right, then delete the selected columns.
Can anyone offer any suggestions on the column selection part?
Here's what I have found for the whole deal:
----------------------------------------------------
To find the first blank/empty cell:
From ----------------------------------------------------
To select an entire column:
From ----------------------------------------------------
Now I just need to put it all together, select all columns to the right, and then delete the selected columns.
(Granted I could do it manually each time, but I'd rather get practice at the VBA part, and not have to remember it each time - once per month).
Thanks for any references, advice, etc.
--
"If to err is human, then I must be some kind of human!" -Me
Can anyone offer any suggestions on the column selection part?
Here's what I have found for the whole deal:
----------------------------------------------------
To find the first blank/empty cell:
Code:
ws.Cells.Find(What:="", After:=[A1], SearchDirection:=xlNext).Select
To select an entire column:
Code:
Sub TestMacro1()
Range("B3").EntireColumn.Select
End Sub
Now I just need to put it all together, select all columns to the right, and then delete the selected columns.
(Granted I could do it manually each time, but I'd rather get practice at the VBA part, and not have to remember it each time - once per month).
Thanks for any references, advice, etc.
--
"If to err is human, then I must be some kind of human!" -Me