I have a macro that publishes a file to a Sharepoint folder from within an Excel document.
One user out of 5 is having an issue where it gets to the end of the publishing status bar and suddenly it goes bonkers with "1004 document not saved".
This person has a slightly later version of Excel Build but it seems unlikely that would be the cause. We all have 2016 full desktop plus 365.
I searched here and online but I only find reference to 2007.
The user has full access to the folder in sharepoint and can upload files there.
Debug Highlights Active.Workbook but doesn't go into details.
Sub Publish()
'Publish PDF Macro
myResponse = MsgBox("Are you sure you want to publish?", vbYesNo)
If myResponse = vbNo Then Exit Sub
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:="https://sharepoint.com/Departments//Dept..." & "_" & Environ("UserName") & "_" & Format(Now(), "mm.dd.yy hh.mm")
End Sub
Any insight on what to check for would be appreciated.
One user out of 5 is having an issue where it gets to the end of the publishing status bar and suddenly it goes bonkers with "1004 document not saved".
This person has a slightly later version of Excel Build but it seems unlikely that would be the cause. We all have 2016 full desktop plus 365.
I searched here and online but I only find reference to 2007.
The user has full access to the folder in sharepoint and can upload files there.
Debug Highlights Active.Workbook but doesn't go into details.
Sub Publish()
'Publish PDF Macro
myResponse = MsgBox("Are you sure you want to publish?", vbYesNo)
If myResponse = vbNo Then Exit Sub
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:="https://sharepoint.com/Departments//Dept..." & "_" & Environ("UserName") & "_" & Format(Now(), "mm.dd.yy hh.mm")
End Sub
Any insight on what to check for would be appreciated.
Last edited: