Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable tabs in dialog box

Status
Not open for further replies.

muttsylove

Programmer
Jul 25, 2006
5
US
Hi,

Does anyone know whether it is possible to disable a specific tab in the built-in dialog boxes in Word? For example, is it possible to disable the Layout tab in the File --> Page Setup dialog box?

Any help would be great!
 
Thanks Gerry,

The reason for this is that there are firm standards set (i.e for margins) and we do not want users manipulating these specifications.

After some research, it appears that disabling tabs in Microsoft's built-in dialog boxes is possible (unless you know otherwise).

Hopefully this helps others should they run into this predicament.

Thanks!
 
Sorry, what I meant to say was disabling tabs in Microsoft's built-in dialog boxes "IS NOT" possible... <sigh>
 
sounds like a case for better training.

if you really don't want the users changing these things, change them back in Document_Save(). Of course, this will screw with wghatever formatting they've set up, but when they come to you bleating about it you can say (caps intended to show loud voice) "WELL DON'T DICK WITH THE MARGINS THEN."


mr s. <;)

 
Unfortunately I have no Word active at the moment. That's why I just post an idea I have not checked out.
The built-in dialog "Datei-Eigenschaften" has five tabs. When you check the object catalogue for constants for 'Application.Dialogs()', you find each of the tabs as a separate dialog. Thus you might as well disable 'File - Page Setup' completely and offer instead an one-liner "application.dialogs(xx).show" which shows only the tab you want to allow.

Please excuse any faults and the two German words as I am quite in a hurry and decided to post my idea unchecked.

Hope it helps anyway.

Markus
 
The reason for this is that there are firm standards set (i.e for margins) and we do not want users manipulating these specifications.
First of all I hope you are using templates for these. I would then disable File > Page Setup in the template file.

Certainly anyone who knows what they are doing could get around it, but it would stop most users from changing your margins.

Gerry
My paintings and sculpture
 
Thanks to everyone for your help! This is all done within a template and I disabled the option from the File menu (and used the below code to display the dialog box).

Unfortunately I was trying to look into Markus4's idea but wasn't able to find dialogs which references specific tabs (seems like an all or nothing thing still).

I guess I will have to let these tabs be enabled until I find something else (if anything, I would could always built my own form and just display the info I want them to access at the end) .

/
Set dlgPageSetup = Dialogs(wdDialogFilePageSetup)
dlgPageSetup.Tab = 1
dlgPageSetup.Display
/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top