andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
My in-expertise at VBA seems to have caught up with me. As I tried to edit this, it seems all I've done is make it do nothing...
Here's my code:
What the code should do:
Is clear the currently selected cells, then clear the matching cells on the "RO" sheet. The cells are offset (-85,-2)

Here's my code:
Code:
Sub clear() Dim objColorStop As ColorStop
Dim mySelect As Range
Dim myOthershtRng As Range
Set mySelect = ActiveSheet.Range(Selection.Address)
Set myOthershtRng = Sheets("Scheduler").Range(Selection.Address).Offset(-85, -2)
Application.ScreenUpdating = False
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
Sheets("RO").Visible = True
Sheets("RO").Select
With myOthershtRng.ClearContents
End With
Sheets("Scheduler").Select
Application.ScreenUpdating = True
'Sheets("RO").Visible = False
Sheets("Scheduler").Select
Range("R1").Select
'Call RTO
End Sub
What the code should do:
Is clear the currently selected cells, then clear the matching cells on the "RO" sheet. The cells are offset (-85,-2)