Create an excel function that downloads one historical data point from Google Finance
$10-30 USD
Terminado
Publicado hace alrededor de 9 años
$10-30 USD
Pagado a la entrega
The below code needs to be adjusted into a VBA function - that has three arguments: Ticker, Date, Type, where Type can be: Open, High, Low, Close or Volume. When used in excel in a cell it should return the corresponding value as per Google Finance website (this will be a number or if not available "N/A").
At the moment the code below is used for downloading the full data (type + date range), however the function should be referring to just one value.
*****
Option Explicit
Sub GetData()
Dim DataSheet As Worksheet
Dim EndDate As Date
Dim StartDate As Date
Dim Symbol As String
Dim qurl As String
Dim nQuery As Name
Dim LastRow As Integer
[login to view URL] = False
[login to view URL] = False
[login to view URL] = xlCalculationManual
Sheets("Data").[login to view URL]
Set DataSheet = ActiveSheet
StartDate = [login to view URL]("startDate").Value
EndDate = [login to view URL]("endDate").Value
Symbol = [login to view URL]("ticker").Value
Sheets("Data").Range("a1").[login to view URL]
qurl = "[login to view URL]" & Symbol
qurl = qurl & "&startdate=" & MonthName(Month(StartDate), True) & _
"+" & Day(StartDate) & "+" & Year(StartDate) & _
"&enddate=" & MonthName(Month(EndDate), True) & _
"+" & Day(EndDate) & "+" & Year(EndDate) & "&output=csv"
QueryQuote:
With Sheets("Data").[login to view URL](Connection:="URL;" & qurl, Destination:=Sheets("Data").Range("a1"))
.BackgroundQuery = True
.TablesOnlyFromHTML = False
.Refresh BackgroundQuery:=False
.SaveData = True
End With
Sheets("Data").Range("a1").[login to view URL] Destination:=Sheets("Data").Range("a1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=True, Space:=False, other:=False
Sheets("Data").Columns("A:G").ColumnWidth = 12
End Sub
Please send me the actual file so I can see the given parameters on the Data sheet.
............................................................................
Hey There,
Thanks for posting the project. Its looks feasible and am Interested to do it.
Next steps:
Lets discuss/validate the complete requirement and I can start to get this done with required quality output.
I am an excel/access VBA automation professional having 7+ years of experience and can do it with the required quality.
We can discuss the budget post discussing the complete requirements.
Lets discuss more online on chat.
Thanks,
Abhinav
Hi,
I have more than 14 years of Excel/VBA exp and I am expert in this kind of work.
I have completed more than 225 projects. Please look at the feedback left by my employers to know more about my work.
Waiting for your positive response.
Thanks.
Hello.
It was interesting for me to make something similar (I'm just learning web-parsing). So, the function is almost complete, I just need a nice sample: correct link :-) for testing
I didn't used Queries, but used Microsoft VBScript Regular Expressions in VBA-Tools-References.
And what did you mean Ticker?
Contact me to discuss details.
Have a nice day :-)
Dear Sir,
I am very much interested in this project.
With 8 year of corporate experience as Business Analyst and Reporting Specialist I am an expert in excel.
I am new to freelancing, I need to establish a reputation first. That's why I offer you such a great price.
Best regard,
Andrei
I am an expert in Microsoft Excel and had recently done a very similar task. creating query connection adjusting the VBA code and data manipulation to suit your format required.
Hello
how are you
may i help you ?
can you send me more details about the requirements so i can send you the cost estimations?
Let my profile approve the quality of work
------------------------------------------------------------
please check my profile , i completed many many tasks
and i have about more than 138 reviews within 1-2 years with rating about 96%
and CERT level 5 ranking too
and approximately
122 Projects completed
and about 112 Buyers worked with
RESPONSE TIME: within few hours
so i would like if i helped you in your business and make future work too
if there is any note about the price just send me a note please
I want to gather new clients
Thanks,
Muhammad