C 
		
								
				
				
			
		cereldine
Hi i have a procedure that copys data into a workbook from external
locations, i need to save this workbook under todays date to create an
audit trail. I'm having problems doing this as running the code brings
up error 1004 - excel cannot access the file because doesn't exist,
used by someone else.
What is wrong, code is below, thanks
Dim fname As String
fname = "Mainfile-" & Format(Date, "dd/mm/yyyy")
ActiveWorkbook.SaveAs Filename:=fname
MsgBox (fname)
				
			locations, i need to save this workbook under todays date to create an
audit trail. I'm having problems doing this as running the code brings
up error 1004 - excel cannot access the file because doesn't exist,
used by someone else.
What is wrong, code is below, thanks
Dim fname As String
fname = "Mainfile-" & Format(Date, "dd/mm/yyyy")
ActiveWorkbook.SaveAs Filename:=fname
MsgBox (fname)