I'm using this formula to clear a range of cells (amongst other things)
Application.ScreenUpdating = False
Application.Goto Reference:="Database"
nextblank = [A65536].End(xlUp).Offset(1, 0).Address
Range(nextblank).Select
Range("Input".Copy
ActiveSheet.Paste
Application.Goto Reference:="R1C1"
Application.Goto Reference:="Input"
Application.CutCopyMode = False
Application.Goto Reference:="R1C1"
Range("Input".ClearContents
Application.ScreenUpdating = True
Is there a way that I can keep the formulas in the cells intact and just clear the text, I tried this
Sheet2.Range("K4:K23".Text = ""
but that gives me an error. Oh what to do
Application.ScreenUpdating = False
Application.Goto Reference:="Database"
nextblank = [A65536].End(xlUp).Offset(1, 0).Address
Range(nextblank).Select
Range("Input".Copy
ActiveSheet.Paste
Application.Goto Reference:="R1C1"
Application.Goto Reference:="Input"
Application.CutCopyMode = False
Application.Goto Reference:="R1C1"
Range("Input".ClearContents
Application.ScreenUpdating = True
Is there a way that I can keep the formulas in the cells intact and just clear the text, I tried this
Sheet2.Range("K4:K23".Text = ""
but that gives me an error. Oh what to do