[FONT=Courier][SIZE=2][COLOR=#00007f]Sub[/COLOR] ListLinks()[/SIZE][/FONT]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Dim[/COLOR] IeApp [COLOR=#00007f]As[/COLOR] InternetExplorer[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Dim[/COLOR] sURL [COLOR=#00007f]As[/COLOR] [COLOR=#00007f]String[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Dim[/COLOR] IeDoc [COLOR=#00007f]As[/COLOR] [COLOR=#00007f]Object[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Dim[/COLOR] i [COLOR=#00007f]As[/COLOR] [COLOR=#00007f]Long[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘Create new instance of IE[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Set[/COLOR] IeApp = [COLOR=#00007f]New[/COLOR] InternetExplorer[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘Make it visible - some things don’t work[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘unless it’s visible[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] IeApp.Visible = [COLOR=#00007f]True[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘define the page to open[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] sURL = “www.dicks-blog.com”[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘navigate to the page[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] IeApp.Navigate sURL[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘Pause the macro using a loop until the[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘page is fully loaded[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Do[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Loop[/COLOR] [COLOR=#00007f]Until[/COLOR] IeApp.ReadyState = READYSTATE_COMPLETE[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]’store the Document object[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Set[/COLOR] IeDoc = IeApp.Document[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘Loop through the links collection. Most collections[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]’seem to be zero based, but it’s pretty much trial and[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘error for me[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]For[/COLOR] i = 0 [COLOR=#00007f]To[/COLOR] IeDoc.links.Length - 1[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘write the linking url to a cell[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] Cells(i + 1, 1).Value = IeDoc.links(i).href[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Next[/COLOR] i[/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#007f00]‘Clean up[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier] [COLOR=#00007f]Set[/COLOR] IeApp = [COLOR=#00007f]Nothing[/COLOR][/FONT][/SIZE]
[SIZE=2][FONT=Courier][COLOR=#00007f]End[/COLOR] [COLOR=#00007f]Sub[/COLOR][/FONT][/SIZE]