How to use vba to open IE & then pull website of my choice

aedctalk

Board Regular
Joined
Oct 9, 2010
Messages
156
I have this code to open ie:

Call Shell("C:\Program Files\Internet Explorer\iexplore.exe", 1)

But how can i choose the site it loads?

Also.. what i wanted to do was pull a site that would be like

mysite.com?= MY CELL VALUE HERE

so mysite.com?=Configuration!J20

Is this possible? I would really really appreciate any insight

Thank you!!!!!!!!!!!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Ok. I have a sub that works..

Just curious how i could add a cell value to the end of this url?

Code:
Sub VisitWebsite()

Dim ie As Object
Set ie = CreateObject("INTERNETEXPLORER.[URL="http://www.xtremevbtalk.com/showthread.php?t=135256#"][COLOR=blue !important][FONT=verdana]APPLICATION[/FONT][/COLOR][/URL]")
ie.NAVIGATE "http://websiteaddress"
ie.Visible = True

While ie.busy
DoEvents
Wend

End Sub


Thank you so much!
 
Upvote 0
Something like this:
Code:
ie.NAVIGATE "http://websiteaddress?param=" & Sheets("Configuration").Range("J20").Value
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,248
Members
452,900
Latest member
LisaGo

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
Back
Top