Hi,
There's several post in this forum that I can use for my work but I don't know how to make the file name base on the ws range.
Regards,![]()
Please Login or Register to view this content.
tt3
Hi,
There's several post in this forum that I can use for my work but I don't know how to make the file name base on the ws range.
Regards,![]()
Please Login or Register to view this content.
tt3
Last edited by tuongtu3; 12-10-2012 at 10:11 PM. Reason: Solved
![]()
Please Login or Register to view this content.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Hi TMS<
I tried but it didn't work. Can you take a look.
![]()
Please Login or Register to view this content.
In what way does it not work? Have you got a Documents folder at the root level of Drive C:\
Regards, TMS
Hi TMS,
Yes, I did have a Documents folder at the root level of Drive C:\
In cell B3 = Reference# xxxxx
and it work if I entered "Filename:="C:\Documents\Reference#" & ".pdf"
Regards,
tt3
I suggest you post a sample workbook with some typical data and the code you are working with.
Regards, TMS
Hi TMS,
Please take a look at the file in attached.
Regards,
tt3
Try:
![]()
Please Login or Register to view this content.
Regards, TMS
Hi TMS,
Still got an error message "Compile error: Variable not defined" and "Dest =" was
highligh. I tried the code on other win7 and that works.
Thank you very much for your time and help.
Regards,
tt3
Clearly, Dest is defined ... did you copy and paste the code or did you retype it?
I tested it on a Windows 7 machine with Excel 2007. And i set up a folder structure on my C: drive to emulate your environment. I then copied and pasted the code from the VB Editor into the thread.
Sorry it doesn't work. I can only assume it is something to do with the MAC.
Regards, TMS
Hi TMS,
Thank you very much for your time and help.
Regards,
tt3
You're welcome![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks