I'm trying to either check for a file on an external SharePoint folder or ideally copy the file to our network.
I've tried the usual workbook open commands and filecopy commands but nothing is working.
Basically I'd like to check for a new file (the files are normally dated in various formats - I can use the format (now... command)) and download them to our network where the macro can continue with its formatting and file commands.
I can't find any way to open or even check for files on the SharePoint folder. The SharePoint folder has a username and password to enter it.
It's worth trying something like...
to detect the file. You can get the path from right clicking on the file in Sharepoint and copying the shortcut. You may need to trim off the http: prefix.X = Dir("\\mysharepointshare\folder1\folder2\test.txt")
Martin
Eighty Twenty Spreadsheet Automation http://homepage.ntlworld.com/martin.rice1/ for all your Excel customisation and consulting needs.
If my solution has saved you time and/or money, please consider donating to Cancer Research UK.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks