VB- how to save offline file to server when computer is online

szl14l

New Member
Joined
Jun 4, 2012
Messages
1
I have written a Excel VB to save a file to sharepoint from an automated task. It works fine if it is connected to office network. If I am offline , I save the file to local drive . Can somebody help to guide me for the macro to save the file to sharepoint when computer is connected to office network? My office does not recommend checking the network status continuously. Any suggestions will be appreciated

Regards
szl14l
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
A typical strategy in a case like this is to attempt to save the file to your sharepoint location. If it works, good, and if it doesn't work, then save locally instead.
 
Upvote 0

Forum statistics

Threads
1,225,619
Messages
6,186,050
Members
453,335
Latest member
sfd039

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top