Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'd like to know how I can show the Cell-properties dialog from within VBA? As my sheet is protected, the cell properties-item is disabled (greyed out) in the format-menu. But, in a button, I could unprotect the sheet, then show the dialog, and afterwards, protect again. Or isn't it that simple? Thanks Jos Vens |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't know of any reason your approach shouldn't work.
CommandBars.FindControl(, 855).Execute -- Jim "Jos Vens" wrote in message ... | Hi, | | I'd like to know how I can show the Cell-properties dialog from within VBA? | | As my sheet is protected, the cell properties-item is disabled (greyed out) | in the format-menu. But, in a button, I could unprotect the sheet, then | show the dialog, and afterwards, protect again. Or isn't it that simple? | | Thanks | Jos Vens | | |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Change the takefocusonclick property of the commandbutton to false:
Private Sub CommandButton1_Click() Me.Unprotect CommandBars("Cell").ShowPopup Me.Protect End Sub -- Regards, Tom Ogilvy "Jos Vens" wrote in message ... Hi, I'd like to know how I can show the Cell-properties dialog from within VBA? As my sheet is protected, the cell properties-item is disabled (greyed out) in the format-menu. But, in a button, I could unprotect the sheet, then show the dialog, and afterwards, protect again. Or isn't it that simple? Thanks Jos Vens |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi guys,
both options are valuable for me! I wonder how I can know the different numbers to show other menu's/dialogs, like Jim did? Is there a list or something? Thanks a lot for your effort! Jos "Tom Ogilvy" schreef in bericht ... Change the takefocusonclick property of the commandbutton to false: Private Sub CommandButton1_Click() Me.Unprotect CommandBars("Cell").ShowPopup Me.Protect End Sub -- Regards, Tom Ogilvy "Jos Vens" wrote in message ... Hi, I'd like to know how I can show the Cell-properties dialog from within VBA? As my sheet is protected, the cell properties-item is disabled (greyed out) in the format-menu. But, in a button, I could unprotect the sheet, then show the dialog, and afterwards, protect again. Or isn't it that simple? Thanks Jos Vens |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There's only a couple thousand so I memorized them.<g Actually I was
wishing for a quick and easy way but I used this code in the Immediate window: ?Commandbars("Format").Controls(1).Id -- Jim "Jos Vens" wrote in message ... | Hi guys, | | both options are valuable for me! I wonder how I can know the different | numbers to show other menu's/dialogs, like Jim did? Is there a list or | something? | | Thanks a lot for your effort! | Jos | | "Tom Ogilvy" schreef in bericht | ... | Change the takefocusonclick property of the commandbutton to false: | | Private Sub CommandButton1_Click() | Me.Unprotect | CommandBars("Cell").ShowPopup | Me.Protect | End Sub | | -- | Regards, | Tom Ogilvy | | "Jos Vens" wrote in message | ... | Hi, | | I'd like to know how I can show the Cell-properties dialog from within | VBA? | | As my sheet is protected, the cell properties-item is disabled (greyed | out) | in the format-menu. But, in a button, I could unprotect the sheet, then | show the dialog, and afterwards, protect again. Or isn't it that simple? | | Thanks | Jos Vens | | | | | | |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Very useful Jim!
Thanks Jos "Jim Rech" schreef in bericht ... There's only a couple thousand so I memorized them.<g Actually I was wishing for a quick and easy way but I used this code in the Immediate window: ?Commandbars("Format").Controls(1).Id -- Jim "Jos Vens" wrote in message ... | Hi guys, | | both options are valuable for me! I wonder how I can know the different | numbers to show other menu's/dialogs, like Jim did? Is there a list or | something? | | Thanks a lot for your effort! | Jos | | "Tom Ogilvy" schreef in bericht | ... | Change the takefocusonclick property of the commandbutton to false: | | Private Sub CommandButton1_Click() | Me.Unprotect | CommandBars("Cell").ShowPopup | Me.Protect | End Sub | | -- | Regards, | Tom Ogilvy | | "Jos Vens" wrote in message | ... | Hi, | | I'd like to know how I can show the Cell-properties dialog from within | VBA? | | As my sheet is protected, the cell properties-item is disabled (greyed | out) | in the format-menu. But, in a button, I could unprotect the sheet, then | show the dialog, and afterwards, protect again. Or isn't it that simple? | | Thanks | Jos Vens | | | | | | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto show properties dialog box on save | Setting up and Configuration of Excel | |||
Importing Data: OLE DB and data link properties dialog | Excel Discussion (Misc queries) | |||
cell properties | Excel Discussion (Misc queries) | |||
Properties dialog box opens instead of a workbook | Excel Discussion (Misc queries) | |||
Scroll Bar missing "Control" tab in "Format Properties" dialog box | Excel Discussion (Misc queries) |