I have looked through the forum but couldn't find what I am looking for.
Anybody has a code where it looks for defined specific names on one folder and then copies it to another folder.
any help would be greatly appreciated!
I have looked through the forum but couldn't find what I am looking for.
Anybody has a code where it looks for defined specific names on one folder and then copies it to another folder.
any help would be greatly appreciated!
![]()
Please Login or Register to view this content.
David
(*) Reputation points appreciated.
Change filterstring to any legal wildcard pattern.
Your code compiles but does not copy files from one folder to another. It runs but does not do anything.
ps
I have 2 files that I need from inside a folder
RB1.pdf
RB2.pdf
Would this work?
![]()
Please Login or Register to view this content.
or just this code![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by Tinbendr; 06-21-2016 at 04:07 PM.
![]()
Please Login or Register to view this content.
Runs but doesn't do anything
![]()
Please Login or Register to view this content.
Thanks for the help, but It does the same thing. Maybe I am doing something wrong, dunno.
Add a line to see what path name you're generating.
F8 and step through the code until you pass the debug line. (Be sure to turn on the immediate window.)
Make sure the name shown matches the actual path.![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks