Hi All,
Quick presentation as it's my first post on this forum: I'm 28 and working in Controlling for a large French company in Singapore. I've been reading this forum for a few years now and always managed to use existing threads to find my way with my codes. However I could not find what I wanted this time. I consider myself as a pretty good excel user but quite an inexperienced VBA user. So I apologize in my request seems basic to you.
I have a file that needs macro to work well. So I have a spreadsheet displaying a message and tutorial to enable it. I need this spreadsheet to be visible and active whenever the user opens the file with macro disabled, but hidden when he opens the file with macro enabled (this part is fine I have my code).
However when in use (so with this "warning" spreadsheet hidden already), in want it to become visible and active again whenever the file is saved and closed.
My expecting result would be something like this:
- When user wants to save the file the "warning" spreadsheet becomes visible and active
- then the file gets saved
- then a Y/N textbox opens asking the user if he wants to continue working on the file
- if yes then the "warning" spreadsheet gets hidden again and the macro ends here (but file should not be saved again at that stage)
- if no then the file should close without asking the user if he wants to save it again (as he just did it before). This is where I had my issues with a new box popping-up.
In that the file cannot be saved without the "warning" being visible and active.
I unfortunately deleted my code so I cannot post it here.
Thanks for your help.
Nicolas
Quick presentation as it's my first post on this forum: I'm 28 and working in Controlling for a large French company in Singapore. I've been reading this forum for a few years now and always managed to use existing threads to find my way with my codes. However I could not find what I wanted this time. I consider myself as a pretty good excel user but quite an inexperienced VBA user. So I apologize in my request seems basic to you.
I have a file that needs macro to work well. So I have a spreadsheet displaying a message and tutorial to enable it. I need this spreadsheet to be visible and active whenever the user opens the file with macro disabled, but hidden when he opens the file with macro enabled (this part is fine I have my code).
However when in use (so with this "warning" spreadsheet hidden already), in want it to become visible and active again whenever the file is saved and closed.
My expecting result would be something like this:
- When user wants to save the file the "warning" spreadsheet becomes visible and active
- then the file gets saved
- then a Y/N textbox opens asking the user if he wants to continue working on the file
- if yes then the "warning" spreadsheet gets hidden again and the macro ends here (but file should not be saved again at that stage)
- if no then the file should close without asking the user if he wants to save it again (as he just did it before). This is where I had my issues with a new box popping-up.
In that the file cannot be saved without the "warning" being visible and active.
I unfortunately deleted my code so I cannot post it here.
Thanks for your help.
Nicolas