Re: How to test an adjacent cell for blank in conditional formatting
- From: "davegb" <davegb@xxxxxxxxxxxxxx>
- Date: 28 Mar 2007 06:40:31 -0700
On Mar 28, 6:08 am, Dave Peterson <peter...@xxxxxxxxxxxxxxxx> wrote:
In code?
dim myCell as range
set mycell = active***.range("b99")
if isempty(mycell.offset(0,1).value) then
msgbox "the cell to the right is empty--no formula, no nothing!"
end if
If you want to check to see if it contains a formula that evaluates to "" or is
empty:
if mycell.offset(0,1).value = "" then
davegb wrote:
I want to test to see if an adjacent cell is blank or not to change
the formatting of the cell in question. I would guess it might involve
the Offset property. Does anyone know how to do this?
Thanks!
--
Dave Peterson
Thanks for your reply, Dave. I know how to do it in code, I want to
know how to do it in conditional formatting.
.
- Follow-Ups:
- Re: How to test an adjacent cell for blank in conditional formatting
- From: Dave Peterson
- Re: How to test an adjacent cell for blank in conditional formatting
- From: Pete_UK
- Re: How to test an adjacent cell for blank in conditional formatting
- References:
- How to test an adjacent cell for blank in conditional formatting
- From: davegb
- Re: How to test an adjacent cell for blank in conditional formatting
- From: Dave Peterson
- How to test an adjacent cell for blank in conditional formatting
- Prev by Date: Re: Saving As .CSV
- Next by Date: Re: Show Excel in two separate instances/two monitors?
- Previous by thread: Re: How to test an adjacent cell for blank in conditional formatting
- Next by thread: Re: How to test an adjacent cell for blank in conditional formatting
- Index(es):