• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macro works on my pc not on anyone elses suspect adobe problem

Tazthemonkey

New Member
Hi,

I'm running winxp excel 2010 adobe 9, everyone else is on newer pc's mine is not upgraded due to this problem.

Range"A1" is an order number manually inputed

Macro is

[Sub CopyPDFATD()
Dim src As String, dst As String, fl As String
src = "I:\Website Technical Data\Installation Instructions Master Directory\Adventure Trail - Timber\Adventure Trail - Timber (Timber in Ground)"
dst = "O:\Installation\Installation Instructions\Installation Instruction Input\COPIES For Installers\" & Range("A1").Text
fl = "INST Log Walk ATD_iss06.pdf"
On Error Resume Next
FileCopy src & "\" & fl, dst & "\" & fl
End Sub]

Thanks in advance Terry
 

Attachments

  • help.xlsm
    13.2 KB · Views: 2
The code has nothing to do with Adobe. It's just code to move PDF file from one location to another.

There are 3 variables in code.

src
dst
fl

Check and make sure each variable is present and matching.

Especially make sure that destination folder (dst) exists, since it's only variable that's not hard coded in the macro. If it does not exist, it will cause error. However, since the code has On Error Resume Next. It's ignoring error and doing nothing.
 
Last edited:
Back
Top