Intertwyne
New Member
- Joined
- Nov 5, 2015
- Messages
- 1
I have pieced together code from others that when a ‘submit’ button is clicked, is supposed to store a copy of a pdf in the Application.DefaultFilePath.
I have 1 user that the ‘right’ function errors as: “compile error: Can't find project or library”
The error ONLY happens on the workbook I send him, if he opens a new workbook and executes the ‘right’ command in the immediate window, it works.
All other users of the exact same workbook don’t have the problem.
We are all using the same version of Excel, 2010 and Window 7 Enterprise version 6.1
I have confirmed we have the same library’s checked and in the same order.
Thanks
Terry Reed
I have 1 user that the ‘right’ function errors as: “compile error: Can't find project or library”
The error ONLY happens on the workbook I send him, if he opens a new workbook and executes the ‘right’ command in the immediate window, it works.
All other users of the exact same workbook don’t have the problem.
Code:
If Right(Application.DefaultFilePath, 1) <> "\" Then
DefPath = Application.DefaultFilePath & "\"
End If
We are all using the same version of Excel, 2010 and Window 7 Enterprise version 6.1
I have confirmed we have the same library’s checked and in the same order.
Thanks
Terry Reed
Last edited by a moderator: