Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default code a macro to go to a specific website

I wanted to know what line of code to use to make a macro
go to a specified web site?

Thanks!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default code a macro to go to a specific website

Rhonda

the following code will create a hyperlink in the active
cell, then take you to the webpage:-

Sub testHyperlink()

ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:= _
"http://communities.microsoft.com/newsgroups/defaul
t.asp?
icp=Prod_Office&sLCID=US&newsgroup=microsoft.publi c.word.ne
wusers" _
, TextToDisplay:="test"
Selection.Hyperlinks(1).Follow NewWindow:=False,
AddHistory:=True

End Sub

hth,

Tony


-----Original Message-----
I wanted to know what line of code to use to make a macro
go to a specified web site?

Thanks!!!
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default code a macro to go to a specific website

Thanks!!


-----Original Message-----
Rhonda

the following code will create a hyperlink in the active
cell, then take you to the webpage:-

Sub testHyperlink()

ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:= _
"http://communities.microsoft.com/newsgroups/defa

ul
t.asp?
icp=Prod_Office&sLCID=US&newsgroup=microsoft.publ ic.word.

ne
wusers" _
, TextToDisplay:="test"
Selection.Hyperlinks(1).Follow NewWindow:=False,
AddHistory:=True

End Sub

hth,

Tony


-----Original Message-----
I wanted to know what line of code to use to make a

macro
go to a specified web site?

Thanks!!!
.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default code a macro to go to a specific website

How would I get the macro to go to the website and then
copy and paste a table back into sheet 2 starting at cell
BN?




-----Original Message-----
Thanks!!


-----Original Message-----
Rhonda

the following code will create a hyperlink in the

active
cell, then take you to the webpage:-

Sub testHyperlink()

ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:= _
"http://communities.microsoft.com/newsgroups/def

a
ul
t.asp?
icp=Prod_Office&sLCID=US&newsgroup=microsoft.pub lic.word

..
ne
wusers" _
, TextToDisplay:="test"
Selection.Hyperlinks(1).Follow NewWindow:=False,
AddHistory:=True

End Sub

hth,

Tony


-----Original Message-----
I wanted to know what line of code to use to make a

macro
go to a specified web site?

Thanks!!!
.

.

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default code a macro to go to a specific website

You can use

Workbooks.Open (http://www.yahoo.com/)

This will open a new workbook with the webpage as the worksheet. The table
you are looking for will occupy a range of cells that you can then put where
you like.

HTH,
Shockley



"Rhonda" wrote in message
...
How would I get the macro to go to the website and then
copy and paste a table back into sheet 2 starting at cell
BN?




-----Original Message-----
Thanks!!


-----Original Message-----
Rhonda

the following code will create a hyperlink in the

active
cell, then take you to the webpage:-

Sub testHyperlink()

ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:= _
"http://communities.microsoft.com/newsgroups/def

a
ul
t.asp?
icp=Prod_Office&sLCID=US&newsgroup=microsoft.pub lic.word

.
ne
wusers" _
, TextToDisplay:="test"
Selection.Hyperlinks(1).Follow NewWindow:=False,
AddHistory:=True

End Sub

hth,

Tony


-----Original Message-----
I wanted to know what line of code to use to make a

macro
go to a specified web site?

Thanks!!!
.

.

.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default code a macro to go to a specific website

Try this examples Rhonda

Sub LoadWebPage1()
Dim oleIE As Object
Set oleIE = CreateObject("InternetExplorer.Application")
With oleIE
'.TheaterMode = True
.Visible = True
.Navigate "http://www.rondebruin.nl/Google.htm"
End With
End Sub

Sub LoadWebPage2()
ActiveWorkbook.FollowHyperlink Address:="http://www.rondebruin.nl/Google.htm"
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Rhonda" wrote in message ...
I wanted to know what line of code to use to make a macro
go to a specified web site?

Thanks!!!



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default code a macro to go to a specific website

Thank you all for your help!






-----Original Message-----
I wanted to know what line of code to use to make a

macro
go to a specified web site?

Thanks!!!
.

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
Change a specific code to generic in VB macro Sue Excel Discussion (Misc queries) 2 April 23rd 08 06:56 PM
macro to website [email protected] Excel Discussion (Misc queries) 0 March 5th 08 11:30 PM
VB Code to link to website EA Excel Worksheet Functions 1 October 3rd 07 09:15 PM
VB Code to link to website EA Excel Discussion (Misc queries) 1 October 3rd 07 08:04 PM
I want few website name for macro irsath New Users to Excel 2 July 2nd 06 01:00 PM


All times are GMT +1. The time now is 01:21 AM.

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

About Us

"It's about Microsoft Excel"