+ Reply to Thread
Results 1 to 3 of 3

URL Code Checker = Finding if an URL is a 200, 307 or 404

  1. #1
    Registered User
    Join Date
    10-02-2023
    Location
    Toronto, Canada
    MS-Off Ver
    Window 10
    Posts
    2

    URL Code Checker = Finding if an URL is a 200, 307 or 404

    Hello There,

    I am trying to figure out the formula or macro that would provide me the status of a URL. I was able to find out on a Google Sheet, however, ideally, I could do it in Excel.

    As per the title, essentially, entering an URL in a cell, the one located besides it in the next column would have a formula that displays the online status (200, 307 and/or 404).

    It seems quite complex. If you know how to do it or where I could find information related to it that could help, I would sincerely appreciate your support.

    Thank you, All!

    Laurent

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: URL Code Checker = Finding if an URL is a 200, 307 or 404

    Hopefully this will get you started. URLS go in Col A.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-02-2023
    Location
    Toronto, Canada
    MS-Off Ver
    Window 10
    Posts
    2

    Re: URL Code Checker = Finding if an URL is a 200, 307 or 404

    Logit! Thank you so much for taking the time to write down the macro! Much appreciated

    It works well! Ideally, I would like to only display one URL status (my objective once running the script is to filter and extract only the 307). When running the script, it shows "200 or 307" in the cell. I located the script that needs to be edited (below) but can't figure out how to do it to make it works (My macro knowledges are pretty limited).

    If getStatus <> "307" And getStatus <> "200" Then
    .Cells(i, 1).Interior.ColorIndex = 3
    .Cells(i, 2).Value = "404"
    Else
    .Cells(i, 1).Interior.ColorIndex = 4
    .Cells(i, 2).Value = "200 or 307"

    If you could help with it that will be awesome

    Thank you again for all your help, Logit!

    Laurent

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Can you help in figuring out the error in this code or finding an alternative code?
    By saftawy1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2022, 04:43 PM
  2. Help | Fix this VBA CODE [Used for Excel as mass bulk checker for VIES EUROPE]
    By fuegox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2020, 05:42 PM
  3. Row checker but only certain columns
    By samcatbread in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2017, 12:53 PM
  4. Replies: 3
    Last Post: 01-06-2016, 10:04 AM
  5. Replies: 4
    Last Post: 06-28-2014, 10:08 AM
  6. Sequential Checker
    By marcusmark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2011, 03:22 AM
  7. Spell checker
    By help with microsoft site in forum Excel General
    Replies: 1
    Last Post: 06-27-2005, 11:05 AM

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