Hello, i have this segment of the code that creates a sheet named with the textbox1.value.
I want it to check first if that sheet already exists, if so dont create the sheet and continue the code.
hope u can help me![]()
Dim Sheetname As String Dim ws As Worksheet Sheetname = TextBox1.value If Sheetname <> "" Then Set ws = ThisWorkbook.Sheets.Add(after:=Sheets(Sheets.Count)) ws.Name = Sheetname End If
Bookmarks