Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that works fine except sometimes the website comes up with
another logon screen. How can I test for a specific url string to see if thats the current webpage address, so that if it is , I can resend the user/pass . Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is an alternate approach
'----------------------------------- Sub CheckMyURL() Dim strURL As String strURL = "http://www.google.com/" On Error Resume Next Set objHTTP = CreateObject("MSXML2.XMLHTTP") objHTTP.Open "GET", strURL, False objHTTP.Send If objHTTP.statusText < "OK" Then MsgBox "Possible problem with the URL" Else MsgBox "URL checks out" End If Set objHTTP = Nothing End Sub '----------------------------------- Steve Yandl "thomas donino" wrote in message ... I have a macro that works fine except sometimes the website comes up with another logon screen. How can I test for a specific url string to see if thats the current webpage address, so that if it is , I can resend the user/pass . Thank you |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() thanks to both of you "Steve Yandl" wrote: Here is an alternate approach '----------------------------------- Sub CheckMyURL() Dim strURL As String strURL = "http://www.google.com/" On Error Resume Next Set objHTTP = CreateObject("MSXML2.XMLHTTP") objHTTP.Open "GET", strURL, False objHTTP.Send If objHTTP.statusText < "OK" Then MsgBox "Possible problem with the URL" Else MsgBox "URL checks out" End If Set objHTTP = Nothing End Sub '----------------------------------- Steve Yandl "thomas donino" wrote in message ... I have a macro that works fine except sometimes the website comes up with another logon screen. How can I test for a specific url string to see if thats the current webpage address, so that if it is , I can resend the user/pass . Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Testing for a string of zero bytes | Excel Programming | |||
testing a string for either "Minutes" and/or hours and extracting the values | Excel Programming | |||
Testing same cell across multiple sheets for a string and counting each instance? | Excel Worksheet Functions | |||
testing for a string type | Excel Programming | |||
Testing a string array for any values | Excel Programming |