Restoring a User's Tools|Options to original state after running a macro 
Author Message
 Restoring a User's Tools|Options to original state after running a macro

I've built a series of forms I wish to distribute to my colleagues to make
their internal reporting chores a little easier.

When an operator runs one of these forms, I want it to look exactly like it
does on **MY**
machine.  I've had to tweak some settings on my system to get these form
running correctly and it's unsafe to assume the operator's machine is set up
"properly adjusted."

For example, I've had to change the:

a.  Tools|Options|View|Screen Tips --> ON
b.  Tools|Options|View|Field Shading --> ALWAYS
c.  Tools|Options|View|Field Codes --> ON
d.  and then delete the "Add AutoText" option to the AutoText Menu bar.

I could write this into the AutoNew macro that fires up my form so that it
will run properly, but I
consider that pretty rude since I don't know how to put the user's machine
back the way it was after my form template has run its course.  Some users
might not notice.  Others most certainly will....

So is there some way to "capture the state" of the end-user's setup, change
these user-specified settings to meet **my** macro's needs, and THEN RESTORE
THE USER'S MACHINE to its pre-template/AutoNew macro condition?

Rick Rodgers

PS Please dig out the !nospam! from my address if you want to reply to me
personally, OK?



Sat, 30 Apr 2005 07:39:14 GMT  
 Restoring a User's Tools|Options to original state after running a macro
Hi Rtrsr,

Quote:
> I could write this into the AutoNew macro that fires up my form so that it
> will run properly, but I
> consider that pretty rude since I don't know how to put the user's machine
> back the way it was after my form template has run its course.  Some users
> might not notice.

Actually, this is what you have to do. Record it in a macro. Then take the
lines and "turn them around", storing the value for each thing you change in
a variable. At the end, turn it around again, to restore the settings from
the variables.

copy the macro you have to do it on your machine in your reply, and we can
show you how this works.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)



Mon, 09 May 2005 19:08:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Macro to change default printer and then restore original default printer settin

2. problem restoring state of (NON-MDI) child windows when parent form restores

3. problem restoring state of (NON-MDI) child windows in VB5 when parent restores

4. Tools | Options in a Macro

5. Running Macro sets doc state as modified

6. Restore Original Normal.DOT

7. detecting user's onine state

8. Macro requests 'OK' confirmation when running

9. Restore Window State

10. Toolbar - Restoring State?

11. Restoring Window to Normal State

12. Restore emulator saved state

 

 
Powered by phpBB® Forum Software