JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
I have this custom UDF and want to use it as a formula to fill a column..
Would this be volatile and recalculate on every cell change?
B2 filled down =
Would i be better running a macro and writing the values? Or would it be fine to use as a formula
Thanks for any info
I have this custom UDF and want to use it as a formula to fill a column..
Would this be volatile and recalculate on every cell change?
VBA Code:
Function URLExists(url As String) As Boolean
Dim Request As Object
Dim ff As Integer
Dim rc As Variant
On Error GoTo EndNow
Set Request = CreateObject("WinHttp.WinHttpRequest.5.1")
With Request
.Open "GET", url, False
.Send
rc = .StatusText
End With
Set Request = Nothing
If rc = "OK" Then URLExists = True
Exit Function
EndNow:
End Function
B2 filled down =
Excel Formula:
=URLExists(A2)
Would i be better running a macro and writing the values? Or would it be fine to use as a formula
Thanks for any info