Thanks for the reply.
I need to do it without any possibility of an error pass. I have code to search whether or not a file exists:
Code:
With Application.FileSearch
.NewSearch
.LookIn = ThisWorkbook.Path & "\Core Files\Employee Journals"
.SearchSubFolders = False
.Filename = OpenedFile
.MatchTextExactly = True
.FileType = msoFileTypeExcelWorkbooks
If .Execute() = 1 Then
I was hoping to have something similar to check the worksheets, rather than using an error check to bypass the sheet creation. I'm just not sure what the syntax would be. Is there another way to do this?
Also, is there a way to specify what name an added worksheet will have, or do you have to have it be the active worksheet in order to rename it? The problem is that I will have multiple workbooks open when this code is executed, and it is possible that the workbook that is being modified will not be the active workbook, which could cause errors.