daniels012
Well-known Member
- Joined
- Jan 13, 2005
- Messages
- 5,219
I have code that sends data to our salesmans computers:
Sometimes if the salesmans computer is down, his computer is turned off, or there is network issues, I get an error on the line:
WB1.SaveCopyAs Filename:=strfilename
Is there a way to avoid this?? It is not imperative that the salesman recieves his copy on his computer, so if there is an error just end sub or something.
Thank You,
Michael
Code:
Select Case WB1.Sheets("FRONT").Range("C2").Value
Case "MD"
strfilename = "\\MIKESRGATEWAY\MikesProposals\" & strfilename
Case "TD"
strfilename = "\\Tomsblackibm\TomsProposals\" & strfilename
Case "DJ"
strfilename = "\\DAVEJONES\DavesProposals\" & strfilename
Case "CP"
strfilename = "\\Chuckscomputer\daily\" & strfilename
End Select
WB1.SaveCopyAs Filename:=strfilename
WB1.ActiveSheet.Shapes("Button 53").Visible = False
ChDir CurrPath
Sometimes if the salesmans computer is down, his computer is turned off, or there is network issues, I get an error on the line:
WB1.SaveCopyAs Filename:=strfilename
Is there a way to avoid this?? It is not imperative that the salesman recieves his copy on his computer, so if there is an error just end sub or something.
Thank You,
Michael