LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Frazer
 
Posts: n/a
Default If and hyperlinks....

I have a hyperlink in a cell, which i need to delete based on another event....

I was hoping to do this using an IF function, or maybe conditional
formatting, but cannot work it out....

Ill show what i mean because this can be confusing


In say, cell A1, i have a hyperlink, called abc. It actually links to a
webpage say, http://www.abc.co.uk. In cell B1 i have a number, which changes
between 0 and 1

when the number 0 appears, i want the hyperlink to stay, but when it changes
to a 1 i want the hyperlink to disappear. This is because of a macro I am
trying to run...


The problem is, because the actual web page is not in the cell, when i try
to do an IF function,in cell A1, i may do =IF(B1=0, abc). I leave the false
part blank so it returns a 0. This doesnt work though, as the abc part
remains the same hyperlink, but when a 0 is returned when false, this too
stays as a hyperlink to exactly the same web page.....but i need it to be
gone completely, or at least not a hyperlink.

I have tried ways to get around this, but i cannot change the format of the
link, ie. change it to www.abc.co.uk, rather than just abc, as the macro I am
using relies heavily on this.


Thnx in advance for the help,
frazer

Can anyone help?
 
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
Why do long hyperlinks get truncated on save in Excel? colerb Excel Worksheet Functions 1 June 13th 05 10:37 PM
Addressing hyperlinks in excel Owen Dodd Excel Discussion (Misc queries) 1 April 20th 05 08:35 PM
Problems with hyperlinks Lynde Excel Discussion (Misc queries) 5 January 14th 05 08:39 PM
Can 2 different hyperlinks be in the same Excel cell? rynes01 Excel Worksheet Functions 2 December 7th 04 05:15 PM
up-date hyperlinks in Excel PM Excel Worksheet Functions 0 November 11th 04 11:55 AM


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