I have this code that duplicated my main sheet and renames is based on a cell value. My problem I don't want to duplicate the sheet if it already exist, which is going to happen A LOT. I need help making this happen. Below is what I have so far.
Code:
Dim MySheetName As String
MySheetName = "TestSheet"
Sheets("MasterSheet").Copy After:=Sheets("MasterSheet")
ActiveSheet.Name = MySheetName