Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Cell properties dialog

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Cell properties dialog

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Cell properties dialog

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Cell properties dialog

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Cell properties dialog

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Cell properties dialog

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto show properties dialog box on save cba Setting up and Configuration of Excel 4 May 18th 09 08:31 AM
Importing Data: OLE DB and data link properties dialog Vivek Excel Discussion (Misc queries) 0 October 22nd 07 03:59 PM
cell properties mike Excel Discussion (Misc queries) 1 September 27th 07 12:03 AM
Properties dialog box opens instead of a workbook Daniel Forthman Excel Discussion (Misc queries) 1 August 14th 07 02:52 PM
Scroll Bar missing "Control" tab in "Format Properties" dialog box Peter Rooney Excel Discussion (Misc queries) 5 August 24th 06 05:36 PM


All times are GMT +1. The time now is 09:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"