Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 354
Default on click change cells color and increase a number..

nop.. it isnt working :(

but thanks for the help..

Daniel.

"Chip Pearson" wrote:

Daniel,

Try something like the following:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count 1 Then
Exit Sub
End If

Application.EnableEvents = False
On Error GoTo ErrH
If Not Application.Intersect(Target, Range("A1:A10")) Is Nothing
Then
Target.Interior.ColorIndex = 3
Target.Value = Target.Value + 1
End If

ErrH:
Application.EnableEvents = True
End Sub

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Daniel" wrote in message
...
hi..

i already know how to change the cell's colors when i click
it.. but i need
to increase a number on one specific cell when the color of any
cell is red..

can someone help me pls?





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
Theme color doesn't change when I click it? Rachey Excel Worksheet Functions 1 March 5th 08 09:30 PM
How to increase the number of files displayed when I click 'file' Roger L B Excel Discussion (Misc queries) 3 August 3rd 07 06:42 AM
is there a control 2 increase a number in a cell by click on the c cflads Excel Discussion (Misc queries) 1 August 31st 06 11:09 PM
How do you change the color of a hyperlink after you click on it? Husker87 Excel Worksheet Functions 1 June 11th 05 06:07 PM
Change cell back color on click Dave Peterson Excel Discussion (Misc queries) 0 January 24th 05 10:50 PM


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