I have a budgeting spreadsheet with multiple columns. I am referencing 3 columns with invoice amounts from the Previous Fiscal Year, and 3 columns with invoice amounts from the Current Fiscal Year. The Columns with previous FY information in them are C, D & E, the Current FY amounts are in F, G & H. I would like for the columns row in C3, C4, C5, Etc and D2, D4, D5, Etc and E3, E4, E5, etc to be deleted once I type in new invoice information in F3, G3, H3. etc.
I was trying to a .clearcontents VBA script but it doesn't want to seem to work. I created a Macro as an example, but am having trouble making the ranges.
Sub UpdateContents()
'
' UpdateContents Macro
'
' Keyboard Shortcut: Ctrl+u
'
Range("G9").Select
ActiveCell.FormulaR1C1 = "117.369"
Range("C9").Select
Selection.ClearContents
Range("D9").Select
Selection.ClearContents
Range("E9").Select
Selection.ClearContents
End Sub
I was trying to a .clearcontents VBA script but it doesn't want to seem to work. I created a Macro as an example, but am having trouble making the ranges.
Sub UpdateContents()
'
' UpdateContents Macro
'
' Keyboard Shortcut: Ctrl+u
'
Range("G9").Select
ActiveCell.FormulaR1C1 = "117.369"
Range("C9").Select
Selection.ClearContents
Range("D9").Select
Selection.ClearContents
Range("E9").Select
Selection.ClearContents
End Sub