How can i see an internet page within an excel tab?

yomero

Active Member
Joined
May 14, 2008
Messages
257
Is this possible?
How can i see an internet page within an excel tab?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
7,339
Put a Microsoft Web Browser control on the sheet. Navigate to required web page using:
Code:
Private Sub CommandButton1_Click()
    WebBrowser1.Navigate "http://www.mrexcel.com"
End Sub
 

yomero

Active Member
Joined
May 14, 2008
Messages
257
Put a Microsoft Web Browser control on the sheet. Navigate to required web page using:
Code:
Private Sub CommandButton1_Click()
    WebBrowser1.Navigate "http://www.mrexcel.com"
End Sub

Thx!
I am having an issue, when i click on it, in any link, or even in any part within the web control, the print pop message appears...how can i avoid this, and why is it showing????
 

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
7,339
I have the same problem (Windows XP SP3, IE8, Excel 2003 SP3). Click on a link and the Print dialogue appears. Click Cancel and IE navigates to the web page. It seems that IE/Excel is using 'Print Target' for the default action of clicking on a link, instead of 'Open'. If you right-click on a link these are amongst the options in the context menu. No idea why it happens or what the proper fix is, but a workaround is:
Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
    If ActiveSheet.Name = "Sheet1" Then Cancel = True
End Sub
where Sheet1 is the name of the sheet containing the web browser.

The problem doesn't occur with a Web Browser control embedded in a Word document, so it looks like a bug with IE/Excel interaction.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,199
Messages
5,835,936
Members
430,396
Latest member
dzifna

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top