PC Review


Reply
Thread Tools Rate Thread

Conditional background if a cell in the range is empty

 
 
Anika V. Bristalli
Guest
Posts: n/a
 
      11th Jun 2007
My apologies if this has already been addressed, but I could not quite
find the exact answer in the previous topics. I am trying to create a
macro that does the following:

* There is a user-selected range (R1)
* The macro goes through each cell in Column 3 of the selected range
(R1.Columns(3)), and checks if a cell is empty or not. If the cell is
empty, then the macro colors this cell plus the seven adjacent cells
to the right of it in grey.
* The macro terminates when it reaches the end of the selected range
R1.

I know the basic concepts, but seem to be missing something with
regards to syntax or something as I am fairly new to excel vba. So, I
would appreciate any suggestions as to how to properly code this
thing. Thank you!

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RlN0MQ==?=
Guest
Posts: n/a
 
      11th Jun 2007
hi,
what range would the user select? and "Any range" doesn't answer the question.
would the user select A1:AF1000 or something smaller. would the selected
range vary in size and place.

Regards
FSt1

"Anika V. Bristalli" wrote:

> My apologies if this has already been addressed, but I could not quite
> find the exact answer in the previous topics. I am trying to create a
> macro that does the following:
>
> * There is a user-selected range (R1)
> * The macro goes through each cell in Column 3 of the selected range
> (R1.Columns(3)), and checks if a cell is empty or not. If the cell is
> empty, then the macro colors this cell plus the seven adjacent cells
> to the right of it in grey.
> * The macro terminates when it reaches the end of the selected range
> R1.
>
> I know the basic concepts, but seem to be missing something with
> regards to syntax or something as I am fairly new to excel vba. So, I
> would appreciate any suggestions as to how to properly code this
> thing. Thank you!
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional background if a cell in the range is empty Anika V. Bristalli Microsoft Excel Discussion 1 11th Jun 2007 06:54 PM
Conditional formatting - on an empty cell condition in _another_ cell? StargateFan Microsoft Excel Programming 5 29th May 2006 08:56 PM
Conditional cell background formatting, based on cell content nosivad Microsoft Excel Misc 5 11th Feb 2006 11:12 PM
Finding next empty empty cell in a range of columns =?Utf-8?B?VW5jbGVCdW4=?= Microsoft Excel Programming 1 13th Jan 2006 11:22 PM
Dynamic Range Based on Cell Result not Empty Cell ExcelMonkey Microsoft Excel Discussion 3 11th Jun 2004 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:30 AM.