Results 1 to 25 of 25

Creating URL Validation Function

Threaded View

  1. #1
    Registered User
    Join Date
    01-27-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    54

    Creating URL Validation Function

    Hello all I'm trying to get this function to work.

    I created a function to check the validity of URL in VBA.

    I try to run it and get a compile error. Any help thanks!

    Public Function CheckURL(url As String)
     Dim request As Object
        Set request = CreateObject("winhttp.winhttprequest.5.1")
        On Error GoTo haveError
        With request
        .Open "head", url
        .send CheckURL = .Status
        End With
    End Function
    haveError:
    CheckURL -Err.Description
    End Function
    Last edited by Leith Ross; 02-04-2019 at 06:51 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creating a Dependent Validation List
    By cpalmer72 in forum Excel General
    Replies: 5
    Last Post: 01-31-2013, 12:38 PM
  2. Duplicates & creating new number after validation
    By Nasir Choudhary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2013, 11:26 AM
  3. [SOLVED] Creating a password validation in a userform
    By abhi2407 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2012, 04:28 AM
  4. Help with creating VBA to filter validation list
    By emwhite in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2010, 12:37 PM
  5. Creating a Macro for Cell Validation
    By alfavest in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-01-2007, 11:40 AM
  6. Creating a variable validation list
    By Kurt Sasse in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-11-2006, 02:45 AM
  7. [SOLVED] creating validation list in VBA
    By Stefi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-13-2006, 07:55 AM
  8. creating a validation
    By MIKE0W in forum Excel General
    Replies: 3
    Last Post: 06-14-2005, 01:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1