I want a new workbook creation that automatically saves at user's system but the path is not fixed so is there any way to do the same. I don't want that User manually gives name ins ave as dialogue box. I want a macro that handles at runtime and saves the workbook in user's specific location.(Users are different) Kindly suggest the code and approach for the same. I have tried some variants:
Sub sb_Copy_Save_ActiveSheet_As_Workbook()
Set wb = Workbooks.Add
ThisWorkbook.Activate
ActiveSheet.Copy Before:=wb.Sheets(1)
wb.Activate
wb.SaveAs "C:\temp\test3.xlsx"
End Sub
This gives me an error and I want the path that allows any user to save the file in their location without user's input(Save As Dialogue). Macro is able to save the file in any user's system.