Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Saving files to Sharepoint site: error 1004 (can't save file)

I am trying to save files to the "Shared Documents" directory on a Sharepoint
site.

the code wkbTarget.SaveAs(URL of SharePoint Site) results in a 1004 error:
File Not Saved.


My URL is (redacted to maintain confidentiality)
"https://sharepoint.xxx.com/xxx/xxx/xx/xxx/Shared%20Documents/Excel_Filename.xlsx" .

It worked once, then I deleted the file from the site. Since then, it
hasn't worked.

Can someone point me in the right direction?

many thanks,
Harry
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Saving files to Sharepoint site: error 1004 (can't save file)

1) You need to be a member or maybe ADMIN of the site to save to the site
this way.
2) I've had to map sharepoint drives to a drive letter and save that way.
I don't believe I've ever had success using the URL
3) 1004 error sounds like you don't have a object wkbTarget. Add this
before the save and see if it helps

if WkbTarget is nothing then
Msgbox("No workbook defined.")
else
'Save your workbook

end if


--
HTH,

Barb Reinhardt



"Harry" wrote:

I am trying to save files to the "Shared Documents" directory on a Sharepoint
site.

the code wkbTarget.SaveAs(URL of SharePoint Site) results in a 1004 error:
File Not Saved.


My URL is (redacted to maintain confidentiality)
"https://sharepoint.xxx.com/xxx/xxx/xx/xxx/Shared%20Documents/Excel_Filename.xlsx" .

It worked once, then I deleted the file from the site. Since then, it
hasn't worked.

Can someone point me in the right direction?

many thanks,
Harry

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default Saving files to Sharepoint site: error 1004 (can't save file)


Thanks Barb.

Actually, I figured out a workaround.
Part of the project was to save the file in a mapped folder, and on a
Sharepoint site.
When I did it this way, I got errors.
However, when I saved it to the Sharepoint site first, it succeeded.
I got the errors when saving to Sharepoint after first trying to save to a
mapped folder I didn't have permissions to.

I've mever mapped a Sharepoint path to a drive letter. How would I go about
doing this? (this seems a bit off topic from Excel, but still, a valid
question.)

thanks,
Harry


"Barb Reinhardt" wrote:

1) You need to be a member or maybe ADMIN of the site to save to the site
this way.
2) I've had to map sharepoint drives to a drive letter and save that way.
I don't believe I've ever had success using the URL
3) 1004 error sounds like you don't have a object wkbTarget. Add this
before the save and see if it helps

if WkbTarget is nothing then
Msgbox("No workbook defined.")
else
'Save your workbook

end if


--
HTH,

Barb Reinhardt



"Harry" wrote:

I am trying to save files to the "Shared Documents" directory on a Sharepoint
site.

the code wkbTarget.SaveAs(URL of SharePoint Site) results in a 1004 error:
File Not Saved.


My URL is (redacted to maintain confidentiality)
"https://sharepoint.xxx.com/xxx/xxx/xx/xxx/Shared%20Documents/Excel_Filename.xlsx" .

It worked once, then I deleted the file from the site. Since then, it
hasn't worked.

Can someone point me in the right direction?

many thanks,
Harry

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Sharepoint site & Determine the number of files and their nam Chilidog Excel Programming 1 June 12th 09 01:18 AM
VBA Code to open an Excel file on a sharepoint site Vit[_2_] Excel Programming 4 September 4th 08 08:01 AM
Pivot Table Source Link changed when file saved to SharePoint site Barb Reinhardt Excel Discussion (Misc queries) 0 November 6th 07 07:55 PM
Having problems saving pdf's from excel to a sharepoint site. Ben H. Excel Programming 2 October 16th 07 05:24 AM
Help with saving an file to an FTP site Stewart Excel Programming 2 May 23rd 07 03:15 PM


All times are GMT +1. The time now is 03:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"