Solved

Error 53 File Not Found

Posted on 2008-10-27
2
249 Views
Last Modified: 2012-08-14
I have the following code (partial) which is producing Error 53 File Not Found.  The file IS there and I've even created a Message Box to ensure that the entire path is correct.   I'm not sure where to go from here and any help in resolving this issue is appreciated.

           
Dim fd As FileDialog
Dim FileDest As Variant
Dim strSource As String
 
On Error GoTo errout
 
strSource = "\\cor-eng-07.am.corp.airliquide.com\g$\smartplantdb\cathistory\" & strFullCat & " Rev " & strRev & "\"
 
Dim fs As Scripting.FileSystemObject
Set fs = New Scripting.FileSystemObject
Dim f1 As Scripting.Folder
Set f1 = fs.GetFolder(strSource)
 
Set fd = Application.FileDialog(msoFileDialogSaveAs)
FileDest = ""
With fd
.InitialFileName = strNewCat & " Rev 0"
.Title = "Copy " & strNewCat & " Rev 0"
.Show
FileDest = .SelectedItems(1)
f1.Copy FileDest
 
Dim strOld As String
Dim strNew As String
 
 
strOld = "\" & strFullCat & " Rev " & strRev & ".zip"
strNew = "\" & strNewCat & " Rev 0.zip"
 
MsgBox (FileDest & strOld & vbCrLf & vbCrLf & FileDest & strNew)
 
'****Error 53 Here
FileCopy FileDest & strOld, FileDest & strNew
Kill FileDest & strOld

Open in new window

0
Comment
Question by:ALPC_EngineeringIT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75
ID: 22815755
Are you *sure* you have adequate permissions on the Folder containing the file?

Can you go directly to the file in Windows Explorer - and do whatever?

mx
0
 

Accepted Solution

by:
ALPC_EngineeringIT earned 0 total points
ID: 22816123
Yes, I am admin on this server with full rights.  I placed a timer event in the code and this seems to have resolved the issue.  Thanks for your response.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question