Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
Sometimes I get an error when getting data from the web. (Either due to lost internet connection or slow internet connections.) The error occurs on Send. if, for example, the website can not be reached, lost internet, or slow internet, I would like to give a message to each scenario. How can I fix this?
Thank you kindly.
Code:
With Request
.Open "GET", URL, False
.setRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"
[B] .send[/B]
.waitForResponse
Response = .responseText
End With
Thank you kindly.