LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Format Cells Dialog

Patrick,

Each worksheet has a change event and a selection change event.
You can test those to see if your cell format change activates either event
..
Also, the often frowned on Send Keys method could work...
'Ctrl key + 1
Application.SendKeys "^1", True

Note: you cannot test SendKeys from the vba module,
test it from the worksheet.
Regards,
Jim Cone
http://www.officeletter.com/blink/specialsort.html


"Patrick Hampton"
wrote in message
Jim
Thanks for the reply, but I don't think this is going to work very well for
me. I am need to override the menu event hanlder and show the dialog from
within the handler. So I assume that calling execute on the menu item will
simply call my handler again rather than showing the dialog, is this correct?
Approaching the problem from a different direction, is there an event that
fires in Excel when the cell format has been changed? If so I could go that
route instead.
Patrick Hampton



"Jim Cone" wrote:
Patrick,
Unless it is hiding under an alias, I think you are going to have to use
something like this, which activates the dialog by using the menu...

Excel.Application.CommandBars(1).FindControl(, 30006, , , True).Controls("Cells...").Execute
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Patrick Hampton"
<Patrick
wrote in message
I was wondering though if there is a way to show the complete Format Cells
dialog with all tabs using an xlBuiltInDialog? I would like to override the
menu event for the Format Cells menu button, so that I can run code to
refresh some controls after a user changes their cell format, but so far have
only found a way to show the dialog with a single tab on it.

Thanks
Patrick Hampton

 
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
Format cells dialog dawall33 Excel Discussion (Misc queries) 3 December 18th 09 03:13 PM
No Format Cells dialog box Fluke[_2_] Excel Discussion (Misc queries) 1 January 23rd 08 03:46 PM
Format Cells Dialog Box EYREI Excel Discussion (Misc queries) 1 October 20th 05 01:52 AM
When I select "format cells", the format dialog box does not disp. Andy S. Excel Worksheet Functions 2 November 23rd 04 03:49 AM
Format Cells dialog box Ryan Poth[_2_] Excel Programming 0 September 17th 03 12:45 AM


All times are GMT +1. The time now is 10:59 PM.

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"