Hello and thanks in advance for your help.
I'm creating a new folder with copies of dox needed for a project, I want to launch the first dox at the close of this macro.
Please Login or Register to view this content.
Thanks again
Hello and thanks in advance for your help.
I'm creating a new folder with copies of dox needed for a project, I want to launch the first dox at the close of this macro.
Please Login or Register to view this content.
Thanks again
Hi,
Firstly you need to declare "wordapp":Then your red code needs to look something like this:Please Login or Register to view this content.
Hope this helpsPlease Login or Register to view this content.
Thank you for the help but,
The files are getting copied and moved but the macro is giving me an error message, see below.
File not found.jpgFiles added.jpg
I tried change the file name as well as changing to a fixed directory. I got the same error message with the commented out ToPath structure as well.Please Login or Register to view this content.
Hi,
In the image "File not found.jpg", if you press the "Debug" button on that prompt, which line of code is highlighted?
Hello,
This line.Please Login or Register to view this content.
Try this:Please Login or Register to view this content.
aj,
That didn't work either.
I'm beginning to think it's not a code issue, because I run this simple open word and get the same message. I've tried different dox as well.
Both 2013 Word doc and 2013 excel. Tried with the .doc ext, and countless other documents all present in C:\MOCPlease Login or Register to view this content.
All files could not be found.
Hi again,
Your sample above wouldn't work, as "C:\MOC" & "\" & "MOC Application" does not actually specify a file to open, only a directory.
Have you tried simplyas in my initial suggestion??? Or perhaps you are only missing the file extension:Please Login or Register to view this content.
It is hard to tell because I don't know what the final value of ToPath is, so I'm only guessing whether or not you are pointing to a directory, or if you pointing to a file but leaving off the file extension.Please Login or Register to view this content.
Last edited by ajryan88; 09-16-2013 at 10:08 PM.
Oh my goodness. Yeah AJ, I tried the .doc extension and it didn't work, but the extension is docx. wow
Thanks everyone, grrrrr. So dumb.
Hahaha no problems!
Please don't forget to click on the * next to my post(s) to say thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks