New data with different result.

Art Long

New Member
Joined
Feb 18, 2025
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
I'm running the following macro (below)

In this macro I'm doing an Interent search once, Then getting the result.
Then in this same macro, I'm calling the same website a second time. and attempting
to get the second result.

My result is showing the result of the first request, then the same result for the second search.

Question is, Do I need to remove the first result before I attempt to get the second result,
and if so "HOW" or

Do I need to get the result of the second search as a second response to the search, that is
the answer for the second search is the "Second" answer is a LIST of results, and again,
if so, " HOW".

Sub Macro1()
'
' Macro1 Macro
'

'
Sheets("correl"). Select

Dim nnn As String
Dim loc As String
For i = 12 Two 13
nnn = Cells(i, 1)
loc = Cells(i, 2)

Dim ie As Object
Set ie = CreateObject("INTERNETEXPLORER. APPLICATION")
ie. NAVIGATE "www.google.com/finance/quote/" + nnn + ":" + place
ie. Visible = False
While ie.busy
DoEvents
Wend

' Application.WindowState = x1Normal
Range(Cells(i, 13), Cells(i, 13)). Select
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False
With Selection.Font
. Name = "calibri"
. Size = 11
. Strikethrough = False
. Superscript = False
. Subscript = False
. OutlineFont = False
. Shadow = False
' . Underline = x1UnderlineStyleNone
' . ThemeColor = x1ThemeColorLight1
. TintAndShade = 0
. ThemeFont = x1ThemeFontMinor
End With

Next i

End Sub

Sample of list of stocks.



ANYSE
TNYSE
CNYSE
INTCNASDAQ



From Art Long
Thanks
 

Forum statistics

Threads
1,226,795
Messages
6,193,045
Members
453,772
Latest member
aastupin

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