Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Newbie
 
Posts: n/a
Default conditional formatting links

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default conditional formatting links

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Newbie
 
Posts: n/a
Default conditional formatting links

Thanks for the reply. I was really after highlighting cells that contain
links. I have tried:
left(a1,1)="="
but doesn't seem to work!

"Gary''s Student" wrote:

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default conditional formatting links

First enter this tiny UDF:

Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function

Then format your cell (A1, for example):
conditional format/formula is/=isformula(A1) and set the format

For info on UDFs, see:


http://www.cpearson.com/excel/differen.htm
--
Gary's Student


"Newbie" wrote:

Thanks for the reply. I was really after highlighting cells that contain
links. I have tried:
left(a1,1)="="
but doesn't seem to work!

"Gary''s Student" wrote:

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
Newbie
 
Posts: n/a
Default conditional formatting links

LOVE IT!!!! thank you very much.

..... is it possible to develop the UDF further to differentiate external
links?



"Gary''s Student" wrote:

First enter this tiny UDF:

Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function

Then format your cell (A1, for example):
conditional format/formula is/=isformula(A1) and set the format

For info on UDFs, see:


http://www.cpearson.com/excel/differen.htm
--
Gary's Student


"Newbie" wrote:

Thanks for the reply. I was really after highlighting cells that contain
links. I have tried:
left(a1,1)="="
but doesn't seem to work!

"Gary''s Student" wrote:

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default conditional formatting links

Sure. Just let us know what you need.
--
Gary''s Student


"Newbie" wrote:

LOVE IT!!!! thank you very much.

.... is it possible to develop the UDF further to differentiate external
links?



"Gary''s Student" wrote:

First enter this tiny UDF:

Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function

Then format your cell (A1, for example):
conditional format/formula is/=isformula(A1) and set the format

For info on UDFs, see:


http://www.cpearson.com/excel/differen.htm
--
Gary's Student


"Newbie" wrote:

Thanks for the reply. I was really after highlighting cells that contain
links. I have tried:
left(a1,1)="="
but doesn't seem to work!

"Gary''s Student" wrote:

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.

  #7   Report Post  
Posted to microsoft.public.excel.misc
Newbie
 
Posts: n/a
Default conditional formatting links

thanks *1m
I would like cell fill to be:
green for links or calculations from sources on the same sheet,
blue for links to a different sheet, but in the same book
and red for links to a different book ..

appreciate your help.


"Gary''s Student" wrote:

Sure. Just let us know what you need.
--
Gary''s Student


"Newbie" wrote:

LOVE IT!!!! thank you very much.

.... is it possible to develop the UDF further to differentiate external
links?



"Gary''s Student" wrote:

First enter this tiny UDF:

Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function

Then format your cell (A1, for example):
conditional format/formula is/=isformula(A1) and set the format

For info on UDFs, see:


http://www.cpearson.com/excel/differen.htm
--
Gary's Student


"Newbie" wrote:

Thanks for the reply. I was really after highlighting cells that contain
links. I have tried:
left(a1,1)="="
but doesn't seem to work!

"Gary''s Student" wrote:

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.

  #8   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default conditional formatting links

A new UDF:

Function isformula(r As Range) As Integer
Dim s As String
isformula = 0
If Not r.HasFormula Then Exit Function

isformula = 1
s = r.Formula
If InStr(1, s, "[") < 0 Then
isformula = 3
Exit Function
End If
If InStr(1, s, "!") < 0 Then
isformula = 2
End If

End Function

junk the old one

Then format your cell (A1 for example):
conditional format/formula is/=isformula(A1)=1 and set the format to green
conditional format/formula is/=isformula(A1)=2 and set the format to blue
conditional format/formula is/=isformula(A1)=3 and set the format to red


WARNING!!

This UDF is not bullet-proof!! It assumes that ! is only for off-sheet
refs. and that [ is only for off-book refs. So it can be fooled!
--
Gary's Student


"Newbie" wrote:

thanks *1m
I would like cell fill to be:
green for links or calculations from sources on the same sheet,
blue for links to a different sheet, but in the same book
and red for links to a different book ..

appreciate your help.


"Gary''s Student" wrote:

Sure. Just let us know what you need.
--
Gary''s Student


"Newbie" wrote:

LOVE IT!!!! thank you very much.

.... is it possible to develop the UDF further to differentiate external
links?



"Gary''s Student" wrote:

First enter this tiny UDF:

Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function

Then format your cell (A1, for example):
conditional format/formula is/=isformula(A1) and set the format

For info on UDFs, see:


http://www.cpearson.com/excel/differen.htm
--
Gary's Student


"Newbie" wrote:

Thanks for the reply. I was really after highlighting cells that contain
links. I have tried:
left(a1,1)="="
but doesn't seem to work!

"Gary''s Student" wrote:

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.

  #9   Report Post  
Posted to microsoft.public.excel.misc
Newbie
 
Posts: n/a
Default conditional formatting links

Thank you very much - does the trick just fine.

"Gary''s Student" wrote:

A new UDF:

Function isformula(r As Range) As Integer
Dim s As String
isformula = 0
If Not r.HasFormula Then Exit Function

isformula = 1
s = r.Formula
If InStr(1, s, "[") < 0 Then
isformula = 3
Exit Function
End If
If InStr(1, s, "!") < 0 Then
isformula = 2
End If

End Function

junk the old one

Then format your cell (A1 for example):
conditional format/formula is/=isformula(A1)=1 and set the format to green
conditional format/formula is/=isformula(A1)=2 and set the format to blue
conditional format/formula is/=isformula(A1)=3 and set the format to red


WARNING!!

This UDF is not bullet-proof!! It assumes that ! is only for off-sheet
refs. and that [ is only for off-book refs. So it can be fooled!
--
Gary's Student


"Newbie" wrote:

thanks *1m
I would like cell fill to be:
green for links or calculations from sources on the same sheet,
blue for links to a different sheet, but in the same book
and red for links to a different book ..

appreciate your help.


"Gary''s Student" wrote:

Sure. Just let us know what you need.
--
Gary''s Student


"Newbie" wrote:

LOVE IT!!!! thank you very much.

.... is it possible to develop the UDF further to differentiate external
links?



"Gary''s Student" wrote:

First enter this tiny UDF:

Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function

Then format your cell (A1, for example):
conditional format/formula is/=isformula(A1) and set the format

For info on UDFs, see:


http://www.cpearson.com/excel/differen.htm
--
Gary's Student


"Newbie" wrote:

Thanks for the reply. I was really after highlighting cells that contain
links. I have tried:
left(a1,1)="="
but doesn't seem to work!

"Gary''s Student" wrote:

You can apply conditional formatting just as in an un-linked cell. The
formatting (conditional or un-conditional) does not link directly:

If A1 contains =Z100, then A1 will display the value of Z100, not its format.

If this is what you want to accomplish, then copy Z100 and
paste/special/format into A1.
--
Gary''s Student


"Newbie" wrote:

Hi,

Is there a way to conditionally format cells that contain either a local
link, external link or typed value?

Thanks.

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
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
conditional formatting Rich Excel Discussion (Misc queries) 2 April 1st 06 10:27 AM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM
... Can I Copy Conditional Formatting... Dr. Darrell Excel Discussion (Misc queries) 1 December 1st 05 01:58 PM
Conditional Formatting Not Working Consistently Christina Excel Discussion (Misc queries) 6 July 22nd 05 11:55 PM


All times are GMT +1. The time now is 03:45 PM.

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"