Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default event triggered by cell format change?

Hi All,

I'd like to run a macro (similarly to a Change event) when the cell format
(e.g. font color) of a cell changes.
How can I do that?

Thanks,
Stefi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default event triggered by cell format change?

Stefi,

There is no event to trap a format change.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefi" wrote in message
...
Hi All,

I'd like to run a macro (similarly to a Change event) when the cell format
(e.g. font color) of a cell changes.
How can I do that?

Thanks,
Stefi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default event triggered by cell format change?

And can't I define one with Event Statement?

Stefi


€˛Bob Phillips€¯ ezt Ć*rta:

Stefi,

There is no event to trap a format change.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefi" wrote in message
...
Hi All,

I'd like to run a macro (similarly to a Change event) when the cell format
(e.g. font color) of a cell changes.
How can I do that?

Thanks,
Stefi




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default event triggered by cell format change?


Stefi wrote:
Hi All,

I'd like to run a macro (similarly to a Change event) when the cell format
(e.g. font color) of a cell changes.
How can I do that?

Thanks,
Stefi


There is no direct way to do so. But - to change the format of a cell
you presumably must first select it. You could try the following
strategy - in the SelectionChange event record the target in a public
range variable, as well as the format information you want to monitor,
Presumably the user will then do something else - change a value or
change the selection. In event handlers for those you could first check
the format information of the range object stored in the public range
variable and see if it has been changed. It might be hard to make this
robust (I used the word "presumably" twice in the above - a sure sign
of potential bugs), but I think it could work. The main problem would
be the lag between when the format changes and when the "event" fires.

Just an idea

-John Coleman

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default event triggered by cell format change?

I don't think so as that allows you to raise events in your code and trap
these. But the format change would be in Excel, not in your code.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefi" wrote in message
...
And can't I define one with Event Statement?

Stefi


"Bob Phillips" ezt ķrta:

Stefi,

There is no event to trap a format change.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Stefi" wrote in message
...
Hi All,

I'd like to run a macro (similarly to a Change event) when the cell

format
(e.g. font color) of a cell changes.
How can I do that?

Thanks,
Stefi






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
Change event triggered by a named range Sean Excel Programming 4 August 1st 05 03:01 AM
Event triggered by cell data change/entry Fred Holmes Excel Programming 3 March 17th 05 02:13 PM
macro triggered by a change to a cell Lee Excel Programming 2 July 3rd 04 12:04 AM
Worksheet_Change Event triggered off specific cell ExcelMonkey[_142_] Excel Programming 2 June 7th 04 03:33 AM
Help - Change Event triggered on File Save As Dee Veloper Excel Programming 4 October 29th 03 02:16 AM


All times are GMT +1. The time now is 05:52 PM.

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

About Us

"It's about Microsoft Excel"