kweaver
Well-known Member
- Joined
- May 12, 2009
- Messages
- 2,940
- Office Version
- 365
I have a macro that prompts a user to select a file that is subsequently saved as a sheet and the data used in calculations.
If the user cancels at the prompt to select a file, how do I avoid an error and just exit the macro?
I suspect it's something to do with OnError, but don't know the placement or syntax to use.
If the user cancels at the prompt to select a file, how do I avoid an error and just exit the macro?
I suspect it's something to do with OnError, but don't know the placement or syntax to use.