Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Run Macro based on cell change

Is it possible to run a macro based on a change in a particular cell (ie.
cell color changes) that would automatically trigger a macro that would cut
the entire row that the cell is in, and then paste it in a new sheet? I have
tried running a macro by recording the action, but it does not seem to
function...

Thank you all!
--
Kristina
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default Run Macro based on cell change

No on cell colour change, that doesn't trigger any event.

--
__________________________________
HTH

Bob

"Binaface" wrote in message
...
Is it possible to run a macro based on a change in a particular cell (ie.
cell color changes) that would automatically trigger a macro that would
cut
the entire row that the cell is in, and then paste it in a new sheet? I
have
tried running a macro by recording the action, but it does not seem to
function...

Thank you all!
--
Kristina



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Run Macro based on cell change

Color change is a formatting function and VBA does not recognize formatting
as an event. However, It is possible to evaluate the color of a cell and if
it is, or is not, a certain color, then initiate some action. You could use
the Worksheet_SelectionChange event to trigger the evaluation.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Interior.ColorIndex = 3 Then
MsgBox "YES"
End If
End Sub

"Binaface" wrote:

Is it possible to run a macro based on a change in a particular cell (ie.
cell color changes) that would automatically trigger a macro that would cut
the entire row that the cell is in, and then paste it in a new sheet? I have
tried running a macro by recording the action, but it does not seem to
function...

Thank you all!
--
Kristina

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
how to change a cell color based on its content using macro? Ranger888 New Users to Excel 6 December 15th 08 08:23 PM
Trigger Macro based on single Cell change gtslabs Excel Programming 5 November 28th 08 09:24 PM
Macro to change directory based on cell content mathel Excel Programming 3 October 20th 07 02:33 PM
Macro to change cell colour based on words tiger Excel Programming 3 July 4th 07 01:42 PM
Please help! Macro to change cell contents based on cell to the left Jennifer[_8_] Excel Programming 7 March 4th 04 01:06 AM


All times are GMT +1. The time now is 01:09 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"