Hello,
I am a basic excel user who is just learning to do a few simple things in VBA and only through information I have found in searches (like adding auto-complete to a dropdown list). My company just moved their server and now a form a previous employee wrote is not functioning properly. I assumed it was a reference to the server location, but am out of my depth - I changed the thisfile= path and it did not correct the issue (the error is the title of my post). The line starting with ActiveWorkbook is highlighted in yellow when I debug. I would be grateful for any help offered to correct this. Please let me know if I need to provide additional details.
The code is:
Public Sub SaveAsA1()
Application.DisplayAlerts = False
Dim thisfile As String, newname As String
newname = Range("s3") & " " & Range("m3").Value
thisfile = "\\43server\orders" & newname
ActiveWorkbook.SaveAs Filename:=thisfile, FileFormat:=51
Application.DisplayAlerts = True
End Sub
I am a basic excel user who is just learning to do a few simple things in VBA and only through information I have found in searches (like adding auto-complete to a dropdown list). My company just moved their server and now a form a previous employee wrote is not functioning properly. I assumed it was a reference to the server location, but am out of my depth - I changed the thisfile= path and it did not correct the issue (the error is the title of my post). The line starting with ActiveWorkbook is highlighted in yellow when I debug. I would be grateful for any help offered to correct this. Please let me know if I need to provide additional details.
The code is:
Public Sub SaveAsA1()
Application.DisplayAlerts = False
Dim thisfile As String, newname As String
newname = Range("s3") & " " & Range("m3").Value
thisfile = "\\43server\orders" & newname
ActiveWorkbook.SaveAs Filename:=thisfile, FileFormat:=51
Application.DisplayAlerts = True
End Sub