View Single Post
 
Old 05-27-2021, 11:55 PM
JamesWood JamesWood is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: Nov 2020
Posts: 37
JamesWood is on a distinguished road
Thumbs up

Quote:
Originally Posted by Guessed View Post
Just because docNameField is a variable within another sub doesn't make it available to other subs or functions. If you want the same variable to be used across different macros then you have two choices.
Thanks so much for this! I guess I'm happy for now that it's working just by using the error handler, but I'll take a look at your code as I can probably make it a lot tidier now. Thanks!
Reply With Quote