VinceF
Board Regular
- Joined
- Sep 22, 2007
- Messages
- 186
- Office Version
- 2016
- Platform
- Windows
The code below is on the "MAIN" page and I'd like add code to it so that it also clears cell contents on different sheet in the workbook.
The other sheet is named "SIGN UP' and the range of cells that need the contents cleared are C5:D44
I'd appreciate any assistance...
VinceF
Excel 2016
Sub RESETMAIN()
'
' RESETMAIN Macro
'
'
Range("D7:D8").Select
Selection.ClearContents
Range("D12:E51").Select
Selection.ClearContents
Range("L12:T51").Select
Selection.ClearContents
Range("AD51").Select
Selection.ClearContents
ActiveWindow.ScrollRow = 19
ActiveWindow.ScrollRow = 18
ActiveWindow.ScrollRow = 17
ActiveWindow.ScrollRow = 16
ActiveWindow.ScrollRow = 13
ActiveWindow.ScrollRow = 12
ActiveWindow.ScrollRow = 11
ActiveWindow.ScrollRow = 7
ActiveWindow.ScrollRow = 6
ActiveWindow.ScrollRow = 5
ActiveWindow.ScrollRow = 4
ActiveWindow.ScrollRow = 1
Range("V12:AD51").Select
Selection.ClearContents
End Sub
The other sheet is named "SIGN UP' and the range of cells that need the contents cleared are C5:D44
I'd appreciate any assistance...
VinceF
Excel 2016
Sub RESETMAIN()
'
' RESETMAIN Macro
'
'
Range("D7:D8").Select
Selection.ClearContents
Range("D12:E51").Select
Selection.ClearContents
Range("L12:T51").Select
Selection.ClearContents
Range("AD51").Select
Selection.ClearContents
ActiveWindow.ScrollRow = 19
ActiveWindow.ScrollRow = 18
ActiveWindow.ScrollRow = 17
ActiveWindow.ScrollRow = 16
ActiveWindow.ScrollRow = 13
ActiveWindow.ScrollRow = 12
ActiveWindow.ScrollRow = 11
ActiveWindow.ScrollRow = 7
ActiveWindow.ScrollRow = 6
ActiveWindow.ScrollRow = 5
ActiveWindow.ScrollRow = 4
ActiveWindow.ScrollRow = 1
Range("V12:AD51").Select
Selection.ClearContents
End Sub