Hi everyone,
I have created a rudimentary excel workbook with macros, and the main idea behind it is to fill out a form, and then you can click a button which runs a macro module; which in turn saves the current sheet to a server, and automatically sends an email to the Administrators - warning them that a new form is ready to be published.
How ever the problem I'm having is that I do not know how to make the file rename it self, as of now only one user can save the file, and if another tries he will only get a warning that the file already exists, and you can only overwrite or cancel the process. So my question is, is there a way I can tell the macro to rename the file if another file with the same name already exists?![]()
Sub Module3() Application.ScreenUpdating = False Worksheets("LO FORM").Copy With ActiveWorkbook .SaveAs Filename:=("**SERVERPATH**") & "\LOFORM.xlsx", FileFormat:=xlOpenXMLWorkbook .Close SaveChanges:=False Application.ScreenUpdating = True End With 'At this point the Mail macro runs'
Thanks in advance,
Bookmarks