trichmondcpa
New Member
- Joined
- Jan 28, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Found a lot of examples of how to rename PDFs using VBA. I did a nice detailed code using variables for the old name and then another column would have the new name. Kept getting "file not found error." By process of elimination I started to simplify and hardcode the file path, etc. to see what was the issue. I'm still a little shaky sometimes with VBA.
I eventually got to the point where even the simple command below gives me the file not found error. I even changes a letter in the new name thinking it couldn't overwrite itself.
Any hints or suggestions?
Name "C:\Users\richt\Downloads\1004-2868_001_010822_99R.pdf" As "C:\Users\richt\Downloads\1004-2868_001_010822_99R.pdf"
I eventually got to the point where even the simple command below gives me the file not found error. I even changes a letter in the new name thinking it couldn't overwrite itself.
Any hints or suggestions?
Name "C:\Users\richt\Downloads\1004-2868_001_010822_99R.pdf" As "C:\Users\richt\Downloads\1004-2868_001_010822_99R.pdf"