Excel/control id
Expert: Gyula Gulyas - 9/6/2007
QuestionGyula:
I use:
Application.CommandBars.FindControl(id:=1605).Execute
to enter design mode. From what I can find, this is also the id for exit design mode, but if I execute the code, it only turns on the design mode. Please, what is the vba to exit design mode?
Sherry
AnswerHere you go:
Sub EnterDesignMode()
Application.CommandBars.FindControl(ID:=1605).Execute
End Sub
Sub ExitDesignMode()
With CommandBars("Exit Design Mode").Controls(1)
If .State = msoButtonDown Then .Execute
End With
End Sub
HTH,
Gyula
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your
Excel question answered in this area then please ask an Excel question here