Disabling the "Design Mode"

J

Joe

I have some problem in my excel when the user clicks the "Design
Mode".

I have protected the Workbook, Worksheet and the VBA Code as well.
So, although the user cannot enter the VBA Code, when he selects that
button, some of the codes are not working.

I have some code on "Workbook Open()" and I think this is the problem
area.

How can I disable the user from clicking the "Design Mode".

Many thanks...

Joe
 
C

Corey

Why not use the WorkBook Open code to HIDE the Control ToolBox Tool Bar

Private Sub Workbook_Open()
Application.CommandBars("Control Toolbox").Visible = False
End Sub


This way they cannot click on what is NOT there in the first place.

Corey...


I have some problem in my excel when the user clicks the "Design
Mode".

I have protected the Workbook, Worksheet and the VBA Code as well.
So, although the user cannot enter the VBA Code, when he selects that
button, some of the codes are not working.

I have some code on "Workbook Open()" and I think this is the problem
area.

How can I disable the user from clicking the "Design Mode".

Many thanks...

Joe
 
J

Joe

Why not use the WorkBook Open code to HIDE the Control ToolBox Tool Bar

Private Sub Workbook_Open()
Application.CommandBars("Control Toolbox").Visible = False
End Sub

This way they cannot click on what is NOT there in the first place.

Corey...


I have some problem in my excel when the user clicks the "Design
Mode".

I have protected the Workbook, Worksheet and the VBA Code as well.
So, although the user cannot enter the VBA Code, when he selects that
button, some of the codes are not working.

I have some code on "Workbook Open()" and I think this is the problem
area.

How can I disable the user from clicking the "Design Mode".

Many thanks...

Joe


Thanks Corey.
That works for a general user.

But still the user can turn on the visibility.. can we prevent that
somehow ??

Thanks..
Joe
 

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