JGordon11
Well-known Member
- Joined
- Jan 18, 2021
- Messages
- 811
- Office Version
- 365
- 2019
- Platform
- Windows
Looking for help with a UDF that can return True if a website at URL can be accessed. If the website does not exist, or the the computer isn't connected to the internet or some other reason the web site is not accessible the UDF would return False, otherwise True. (Or if its easier to do the opposite and if there is success return True otherwise False).
Something like
or
Something like
VBA Code:
Function WebSiteAccessible(URL As String) As Boolean
If Not (...need code for unable to connect to website at URL...) Then
WebSiteAccessible = True
End If
End Function
or
VBA Code:
Function WebSiteAccessible (URL As String) As Boolean
If (...need code for able to connect to website at URL...) Then
WebSiteAccessible = True
End If
End Function