Re: How can I return user's options to their original values? by JGM
JGM
Fri Dec 05 21:22:22 CST 2003
Hi JLee
Yes, you can do that.
I do it all the time.
Here is mt way of doing it, I am sure there are other ways, some probably
shorter...
1) I declare a Public boolean varibale for each option I want to keep track
of.
e.g.: Public ApplyAsTypeUser as Boolean
2) Then, I check the state of each corresponding option before starting any
of my code and store the state in those public variables.
e.g.: ApplyAsTypeUser = UserOptionState
3) I run my code and change the options as I need before letting the user
interact with the document.
4) In the Document_Close procedure, I reinstate all the options using my
variables.
e.g.: UserOptionState = ApplyAsTypeUser
That's it!
HTH
Cheers!
--
_______________________________________
Jean-Guy Marcil
jmarcil@sympatico.ca
"JLee" <anonymous@discussions.microsoft.com> a écrit dans le message de
news: 2DA3EC51-2BC6-4E24-95EC-2D002CAA2E6D@microsoft.com...
> Is there anyway I can save the user's AutoCorrect and Options settings so
that they can be reinstated when the user leaves the template?
>
> I have a template in which I need to disable all of the "Apply as you
type" settings on the "Autoformat As You Type" tab. I want to do a similar
thing with certain settings on the Options tabs. I am changing the settings
in the AutoNew macro associated with the template.
>
> However, I want to return the user's original settings when the user
closes the document associated with my template. Is there any way to do
this?
>
>