Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 49948

VBA to upload exported PDF from Excel to sharepoint

$
0
0
This section code works to save a PDF to a file on our shared drive but not to the SharePoint site. I have access to the site and have loaded excel files using code.


Code:

ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="http://Our sharepoint site.com/Shared Documents/" & name1 & " " & name2 & " " & name3 & " " & Format(Date, "MMDDYY") _
    , Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
    :=False, OpenAfterPublish:=True

Thanks,

Viewing all articles
Browse latest Browse all 49948

Trending Articles