I am using this code to test if a tab with the same name was created:
[VBA]If SheetExists(myInput) Then
PivotTableOptions.Hide
DoEvents
Error008.Show
GoTo CreateTab
End If[/VBA]
[VBA]Function SheetExists(Sh As String, _
Optional WB As Workbook) As Boolean
'-----------------------------------------------------------------
Dim oWs As Worksheet
If WB Is Nothing Then Set WB = ActiveWorkbook
On Error Resume Next
SheetExists = CBool(Not WB.Worksheets(Sh) Is Nothing)
On Error GoTo 0
End Function[/VBA]
It works great, only now I want to give the user the option of switching to that tab with that name to see if it is what they need. Is this possible?