Hello I have the following code (create an workbook):
I like to add the following: if the workbook exist to add an suffix?Private Sub CommandButton116_Click() Dim wb As Workbook Set wb = Workbooks.Add Application.DisplayAlerts = False wb.SaveAs FileName:=ThisWorkbook.Path & "\QUO-.xls" Dim LastRow As Long Set wb = Workbooks.Open(ThisWorkbook.Path & "\QUO-.xls") With wb 'copy range End With wb.save End Sub