Hello All,
Could someone help me with attached VBA code.
I have googled and found this code. I had made few changes in the attached code but i am getting error.
Kindly look into this.
Thanks in advance.
Hello All,
Could someone help me with attached VBA code.
I have googled and found this code. I had made few changes in the attached code but i am getting error.
Kindly look into this.
Thanks in advance.
It is not clear what you are trying to do, but I can drew your attention to a few things.
1. You have declared fFromPath and tToPath, but in your code you haven't used them. Instead you used FromPath. These variables need to be consistent.
2. When you assigned a path to a variable, you used f and t instead of B]fFromPath[/B] and tToPath
3. In the filepaths in cells B1 and B2, you don't have a "\" at the end. You have code looking for that in the IF statements.
This is what I mean!
It now exits with a message "C:\20041 doesn't exist" on my PC which was expected.Please Login or Register to view this content.
See how you go!
Regards
David
When you reply please make it clear WHO you are responding to by mentioning their name.
If this has been of assistance, please advise. A little thanks goes a long way.
- Please click on the *Add Reputation button at the bottom of helpful responses.
Please mark your thread as SOLVED:
- Click Thread Tools above your first post, select "Mark your thread as Solved".
Wow!! Its working.
Thank You..
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks