We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Option Explicit Dim NetFile As String Dim HDFile As String Sub main(HDFile As String, NetFile As String) On Error GoTo Errtrap FileCopy NetFile, HDFile Exit Sub Errtrap: Select Case Err Case 91 ' not set Resume Next Case 53 ' file not found Resume Next Case Else MsgBox Err & " " & Err.Description End Exit Sub End Select End Sub Private Sub Form_Load() NetFile = "\\files\users\andy\temp\Test.bak" HDFile = "c:\temp\test.bak" main HDFile, NetFile End End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.