Message 1 of 6
SaveCopyAs Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
My code working everything fine except the line and I attached the Error Message also. Do the VB Application needs any Reference Components. Plz... Help me
For Each referencedDoc In allReferencedDocs
' Get the full filename of the current document.
designFilename = referencedDoc.FullFileName
' Replace instances of the old design name with the new name
'newDrawingFilename = Replace(COPIPATH & ".idw", Filnam, True)
designFilename = Replace(COPIPATH & ".idw", Filnam, Filnam)
' Add the current file to the FileSaveAs object.
fileSaveAs.AddFileToSave referencedDoc, designFilename
Next
' Do the save copy as of all the files.
fileSaveAs.ExecuteSaveCopyAs
' Close the drawing.
apprenticeServer.Close
MsgBox ("Finished copying design.")
Plz, find the attachment.
Thanks in Advance.
NKalyan
My code working everything fine except the line and I attached the Error Message also. Do the VB Application needs any Reference Components. Plz... Help me
For Each referencedDoc In allReferencedDocs
' Get the full filename of the current document.
designFilename = referencedDoc.FullFileName
' Replace instances of the old design name with the new name
'newDrawingFilename = Replace(COPIPATH & ".idw", Filnam, True)
designFilename = Replace(COPIPATH & ".idw", Filnam, Filnam)
' Add the current file to the FileSaveAs object.
fileSaveAs.AddFileToSave referencedDoc, designFilename
Next
' Do the save copy as of all the files.
fileSaveAs.ExecuteSaveCopyAs
' Close the drawing.
apprenticeServer.Close
MsgBox ("Finished copying design.")
Plz, find the attachment.
Thanks in Advance.
NKalyan