I have an old macro that used to clear all content within all cells in column B .....
Sub ClearAll()
' ClearAll Macro
' Macro recorded 7/11/2008 by Chris
Columns("B:B").Select
Selection.ClearContents
Range("B2").Select
End Sub
I don't recall what Range("B2").Select did ... can someone explain that to me please?
Also, I need to change the code so that it clears the contents of all cells within column B, column H, column M and cell AC1 .. though I don't want cells B1, H1 and M1 cleared at all.
How might i do this?
Sub ClearAll()
' ClearAll Macro
' Macro recorded 7/11/2008 by Chris
Columns("B:B").Select
Selection.ClearContents
Range("B2").Select
End Sub
I don't recall what Range("B2").Select did ... can someone explain that to me please?
Also, I need to change the code so that it clears the contents of all cells within column B, column H, column M and cell AC1 .. though I don't want cells B1, H1 and M1 cleared at all.
How might i do this?