Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default How To Turn A Row One Of Two Colours Without CF

Greetings.

Is there a way to turn a part of a row (A:W) one of two colors,
without using Conditional Formatting (already used all three
conditions), when I paste into that row from a UserForm? I will need
to be able to copy the procedure into 120 sheets (CF Plus won't do
that)

Any help would be appreciated/

TIA

-Minitman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default How To Turn A Row One Of Two Colours Without CF

You do not specify how you are pasting the row from your UserForm or the
conditions you want to test so I can only give a general response: use your
code to test the conditions, and then after the paste set the cells' interior
color. The location where you are pasting and all your cell values that you
may need to include in the test conditions should all either be variables or
object properties that you can read through your code - something in the form
of:
If Range("C" & PasteRowNo).Value <= MyVariable1 Then
Range("A" & PasteRowNo & ":W" & PasteRowNo).Cells.Interior.Color = Color1
Else
Range("A" & PasteRowNo & ":W" & PasteRowNo).Cells.Interior.Color = Color2
End If

This technique does not erase your conditional formatting in those cells, so
if you have set up the conditional formatting on these cells it will still
apply; the colors set above will be the default colors if none of the CF
conditions are met.
--
- K Dales


"Minitman" wrote:

Greetings.

Is there a way to turn a part of a row (A:W) one of two colors,
without using Conditional Formatting (already used all three
conditions), when I paste into that row from a UserForm? I will need
to be able to copy the procedure into 120 sheets (CF Plus won't do
that)

Any help would be appreciated/

TIA

-Minitman

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 can I customise colours used in charts and keep those colours. LJ Charts and Charting in Excel 3 May 20th 10 01:50 PM
How to save one of the MORE COLOURS in the THEME COLOURS? Wulfy Excel Discussion (Misc queries) 0 August 18th 09 10:25 AM
Excel 2003 font colours and cell colours bretta Excel Discussion (Misc queries) 1 April 17th 05 03:45 AM
Code to automatically turn on and turn off Track Changes John[_46_] Excel Programming 1 October 7th 03 02:22 AM
Colours Scott Excel Programming 2 July 24th 03 08:04 AM


All times are GMT +1. The time now is 06:44 AM.

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"