Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
Dim i As Long, v As Long
Dim ACN As Long, ARN As Long, lastrownumber As Long
Dim ie(4) As InternetExplorer
Dim HTMLDoc As HTMLDocument
Dim Chk As String
Dim sURL(4) As String, Result(4) As String, CWeb(4) As String, Oweb(4) As String
For v = 0 To 4
Set ie(v) = CreateObject("InternetExplorer.application")
ie(v).Visible = False
Next v
With ActiveSheet
ACN = ActiveCell.Column
ARN = ActiveCell.Row
lastrownumber = Cells(Rows.Count, ACN).End(xlUp).Row
For i = ARN To lastrownumber
For v = 0 To 4
sURL(v) = .Cells(i + v, 1).Value
Oweb(v) = .Cells(i + v, 4).Value
ie(v).navigate sURL(v)
Next v
For v = 0 To 4
CWeb(v) = "B" & (i + v)
Result(v) = "C" & (i + v)
On Error GoTo Err_Clear
Do
Loop Until ie(v).readyState = READYSTATE_COMPLETE
Set HTMLDoc = ie(v).document
Set oHTML_Element = HTMLDoc.getElementsByTagName("p")(0)
Range(Result(v)).Value = oHTML_Element.innerText
Range(Result(v)).CurrentRegion.WrapText = False
Set pHTML_Element = HTMLDoc.getElementsByTagName("h2")(0).FirstChild
Chk = pHTML_Element.href
If InStr(Chk, Oweb(v)) Then
Range(CWeb(v)).Value = pHTML_Element.href
Range(CWeb(v)).CurrentRegion.WrapText = False
End If
Set pHTML_Element = Nothing
Set oHTML_Element = Nothing
Set HTMLDoc = Nothing
Err_Clear:
If Err <> 0 Then
Err.Clear
Resume Next
End If
Next v
i = i + 4
Next i
End With
For v = 0 To 4
Set ie(v) = Nothing
Next v
End Sub
'A = .Cells(i, 1).Value
'lrc = .Cells(Rows.Count, "C").End(xlUp).Row 'last row in C column
'ie.Silent = True
'Range(Result(v)).CurrentRegion.EntireColumn.AutoFit
'Range(CWeb(v)).CurrentRegion.EntireColumn.AutoFit
'Debug.Print Chk, pHTML_Element.href, Oweb(v)
'Debug.Print Range(CWeb(v)).Value
'Exit For
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team