Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Continued Post - If statement and colors

Thanks Gord, I cannot get the code right to do even one cell. The problem is
if I knew how to write the code I wouldn't ask on this venue and truthfully,
I've just been getting tossed pieces of information and not the full
resolution so it is very difficult to learn from these boards.

When I write the code, the declarations are not working because to do Select
Case you have to indicate what it is you are looking for.

In my case, SaddleColor = WHAT? A range, that didnt work. What is it?
This was my futile attempt of just changing 3 cells in a range. It did
nothing.

Sub Macro3()

Dim SaddleColor As String

SaddleColor = "e7:e9"

Select Case SaddleColor

Case Is = 1
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
Selection.Font.ColorIndex = 2

End Select
End Sub




"Gord Dibben" wrote:

Have you tried

Private Sub Worksheet_Calculate()

instead of the change event?


Gord Dibben MS Excel MVP

On Tue, 1 Jul 2008 15:29:01 -0700, Shu of AZ
wrote:

I did not ask for an Event. That was offered to me by Shane and you. I did
not work. The user would have to enter the value and press enter.



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
If statement and colors Shu of AZ Excel Discussion (Misc queries) 17 July 1st 08 07:10 PM
If then statement continued! Add to distribution list without opening Excel Discussion (Misc queries) 1 October 20th 06 11:02 PM
Should I generally request "post a poll" when I post a new thread? Joe Miller Excel Discussion (Misc queries) 2 January 7th 06 04:46 PM
Continued Column titles Radish Excel Discussion (Misc queries) 1 July 14th 05 03:41 PM
unhide personal.xls ..... continued excelchallenged Excel Discussion (Misc queries) 0 June 15th 05 07:17 PM


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