Hyperlink checker

monicandave

New Member
Joined
Jan 3, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I calculate a series of hyperlinks in a column, only some of which refer to actual files on my computer (not on the Internet). I would like to test for the existence of the file and use the result in an if statement, and display the link if it exists, or leave the cell displaying blank if it does not. Ideally, it should test on opening the spreadsheet or when a control button is clicked.

I have spent days working through various suggestions that I have found, but nothing really fits what I'm looking for.

I will appreciate any help given.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
the DIR FUNCTION returns a string representing the name of a file or directory that matches a specified pattern or file attribute. In this formula, DIR("C:\My Files\") returns the name of a file in the specified directory path "C:\My Files".
 
Upvote 0
What version of Excel is this in? AFAIK there is not (and never has been) a DIR function in Excel.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top