turn off design mode

T

tcnolan

Hi all,

I am working on an excel app and sent the file to another user. We are
both using Excel 2002. I am utilizing command buttons (Control
Toolbox) with macros etc.

When this user opened the file and tried to click a button, it selects
the button. Then he must have double clicked and he started describing
seeing the visual basic editor.

It makes me think that he is in design mode because he can select the
buttons or checkboxes. He did get the "enable macros" warning and
said he clicked "Enable Macros".

Is there a way in VBA to turn off the design mode? Or will protecting
the sheets take care of that? We are still testing so I hadn't turned
on protection yet. I had opened the file on other pcs and this did not
happen. Could he be in design mode by default?

Thanks for any thoughts,

Terry
 
G

Guest

I am not sure if you can "turn off" design mode, but when you protect the
sheet, you can prevent the objects from being moved/deleted using:

activesheet.protect DrawingObjects:=True

Dan
 
T

tcnolan

Hi Dan,

Thank you for your reply. I think we found out what it was. The user
has Macro Security set to high which disables all macros and opens the
workbook in design mode.

Terry
 

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