Enable Disable Design Mode.

A

Ahmad

hi!

I want to Enable/Disable Desing mode in word documents. Scenario is as
under:

i have my own toolbar in word. which has a button same like the
"Desing Mode" button on "Control Toolbox". I want to control "Control
Toolbox" using this button (i.e To Enter/Exit in Design Mode).

Regards,

Ahmad
 
P

Perry

To switch into Designmode use either:
ActiveDocument.ToggleFormsDesign
or
CommandBars(32).Controls(1).Execute

To return to normal mode go
CommandBars(32).Controls(1).Reset

Krgrds,
Perry
 
A

Ahmad Jalil Qarshi

Thanks Perry!

I have tried to do exactly as you suggested. but Execute function is working
fine. i.e if it is in normal mode previously then it goes to design mode and
vice versa. but Reset method is not functioning. furthermore what if i want
to know whether it is in design mode.

Thanks again.

Ahmad Jalil Qarshi
 

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