View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Net_prof Net_prof is offline
external usenet poster
 
Posts: 1
Default Unable to delete file from Sharepoint Server Library using VBA (Ex

I have an Excel application which needs to move the workbook to different
Sharepoint library (directory) depending on the step in the process. The
application is a combination of Worksheets and VBA modules. Each step is
initiated by clicking a command button that is embedded in the excel
worksheet. The current workbook is then moved to the new directory. The
move is accomplished via a SaveAs command.

What I'm having problems with is deleting the original version of the
workbook left behind after the new file has been saved in the new
directory/library. I have tried Kill and the FSO.DeleteFile method with no
results. I want to accomplish this using VBA within the application workbook.

I have accomplished this a number of times in prior projects outside of
Sharepoint server. This is my first project using Sharepoint Server, which
may account for part of the reason (not being familiar with the correct way
to do this in the Sharepoint environment). I can even run this application
on my local drive with no problem.

Is there a solution or direction I can look in to resolve this?? Anyone who
can assist, please let me know as soon as possible.

Thanks,

Ken Etter