Option Explicit
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private objIE As InternetExplorer

Sub main()
    Set objIE = New InternetExplorer
    Dim url
    url = "https://www.amazon.co.jp/gp/registry/wishlist/2D8OEZMWRUYQ8/"
    objIE.Visible = True
    objIE.Navigate2 (url)

    'ǂݍ݊҂
    While objIE.readyState <> READYSTATE_COMPLETE Or objIE.Busy = True
        DoEvents
        Sleep 100
    Wend
    Sleep 100

    Dim objDoc As HTMLElementCollection
    Set objDoc = objIE.document
    Dim element As IHTMLElement
    Dim row
    row = 1
    For Each element In objDoc.getElementsByClassName("a-fixed-left-grid   a-spacing-large")
        'V[gɎ擾^Cg/URL̏
        Worksheets(1).Cells(row, 1) = element.Children(0).Children(0).Children(0).Title
        Worksheets(1).Cells(row, 2) = element.Children(0).Children(0).Children(0).href
        row = row + 1
    Next element

    objIE.Quit
    Set objIE = Nothing
End Sub

