+ Reply to Thread
Results 1 to 3 of 3

Save workbook on a sharepoint site using vba

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    Roanoke, VA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question Save workbook on a sharepoint site using vba

    I am using excel 2003 and getting a Runtime 1004 error, Method Saveas object '_workbook' failed.

    ActiveWorkbook.SaveAs Filename:= _
    "http://sp3/sites/Rke-IT/TE/Shared Documents/Excel Mech Rater_Prioritization.xls" _
    , FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
    ReadOnlyRecommended:=True, CreateBackup:=False, ConflictResolution:=xlLocalSessionChanges

    I can save manually.

    I have tried removing everything excel the path and it still fails.

  2. #2
    Registered User
    Join Date
    05-28-2013
    Location
    Cincinnati OH
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Save workbook on a sharepoint site using vba

    Saw one source suggest removing the "http:" from the filename. Didn't work for me, maybe because mine is HTTPS....
    Last edited by dpbruck; 05-28-2013 at 01:50 PM. Reason: Typo

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    Cincinnati OH
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Save workbook on a sharepoint site using vba

    OK...Now I have mine working. Like I said, it's a secured site, so I'll do a bit of hiding in the code.
    Here are some factors that may be pertinent.
    • Logged onto site
      Added the "HTTPS:"
      Removed the "Forms/AllItems.aspx" from the end of the address
      Replaced spaces with "%20"



    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1