Getting external data

kurtpackard

New Member
Joined
Apr 4, 2002
Messages
3
Good morning,
I am trying to get external data from the internet, but I need to plug in information from my spreadsheet into the URL automaticaly. I have numbers in colum A and I need to get data from each of them. They each have a different web page and I want to do it automatically. Is there a way to reference the Colum A and plug it into the URL? I am not sure if I am being clear enough to get the information I need, if you need more let me know.

Thank you,

Kurt Packard
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Here is some code I wrote for someone else.
The data located in column b is inserted into the URL.
If you need more info, re-post
Tom

Private Sub CommandButton1_Click()
Dim RowCntr
Dim HyperName As String
With ActiveSheet
.Range("A4:A10000").ClearContents
For RowCntr = 4 To 10000
If .Range("B" & RowCntr) <> "" Then
HyperName = .Range("B" & RowCntr)
.Hyperlinks.Add .Range("A" & RowCntr), _
"http://finance.yahoo.com/q?s=" & _
.Range("B" & RowCntr) & "&d=v1", _
TextToDisplay:=HyperName
End If
Next
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,449
Members
449,083
Latest member
Ava19

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