Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Hyperlinks(1).Follow then open as .html

I have a macro that opens a webpage as .html and extracts information. I
need to have the macro to then Follow a hyperlink on that webpage and then
open that page as .html for ectracting more data. I have the Follow part OK.

Is there an instruction to have the macro activate the URL and open it as
..html?

Thanks,

--
Pops Jackson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Hyperlinks(1).Follow then open as .html

I found the solution.
This is the bare bones of it.

sub getlinks()
Workbooks.Open Filename:="http://www.mywebsite.com"
'get data from this page
Range("C14").activate ' the cell with the hyperlink
Workbooks.Open Filename:=selection.hyperlinks(1).address
'continue
end sub

If the hyperlink is an abbreviation of the actual address you may need
Workbooks.Open Filename:="http://www.mywebsite/" & _
mid(selection.hyperlinks(1).address,3,20)
--
Pops Jackson


"Pops Jackson" wrote:

I have a macro that opens a webpage as .html and extracts information. I
need to have the macro to then Follow a hyperlink on that webpage and then
open that page as .html for ectracting more data. I have the Follow part OK.

Is there an instruction to have the macro activate the URL and open it as
.html?

Thanks,

--
Pops Jackson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding row to sheet; having hyperlinks follow Ryan Vande Excel Worksheet Functions 2 October 18th 09 02:40 AM
make hyperlinks follow the copied sheet, not the original dadouza Excel Discussion (Misc queries) 3 October 8th 07 02:29 PM
Follow on to: Determine if a workbook is already open [email protected] Excel Programming 10 February 17th 06 06:49 PM
Copying HTML into Excel Losing Hyperlinks Davud Levitt Excel Discussion (Misc queries) 2 October 31st 05 01:02 AM
Keyboard shortcut to follow hyperlinks? Jack Kohn Links and Linking in Excel 2 December 18th 04 01:05 AM


All times are GMT +1. The time now is 04:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"