Hi, I'm fairly new to VBA's, but it looks like that is what I potentially need if this is even possible. I am looking to automate clearing content in a cell range if another worksheet is selected. Attached is an example workbook with 3 tabs. I am looking for a way to automatically clear the content in cells D3:17 (of current worksheet/tab) if you move to another tab. So if someone fills out tab "Color1" for the cells mentioned and then clicks the tab "Color2", I want the content entered in D3:17 of Color1 to be cleared. Each tab is essentially an option so if a new tab is selected, an individual in theory wont look back at the old tab (or they can start over).
I saw the below code for clearing content, but it looks like you have to manually run that.
Sub Clear_Cells()
Range("D3:D17").ClearContents
End Sub
I also found this code to "run a macro code when activating a sheet from a workbook," but if this is what I need - I could not successfully implement the two codes to work together.
Private Sub Worksheet_Activate()
Call MyMacro
End Sub
Appreciate any input.
Thanks,
Kyle