How can I return user's options to their original values?

J

JLee

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
 
J

JGM

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
(e-mail address removed)

JLee said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top