Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA excel sheet as PDF to SharePoint

Status
Not open for further replies.

msnook

Technical User
Jul 6, 2007
41
US
I am using multiple macros within a spreadsheet to compile reports. When one of these reports are done the macro takes the current sheet and loads it to our SharePoint site as a PDF. I have issues with this, it locks my excel with a blank screen and stalls out my macro. The code I am using is listed below. Is there a better way to save a sheet to SP? I have other sheets saved using the same type of statement and they work fine but not this one. Thanks in advance for any help.


ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
" SharePoint address.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top