• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to amend the attached VBA code to extract stock data from yahoo only instead

Status
Not open for further replies.

ballterrier

New Member
Hi Chandoo,


Below is a link to a free excel spreadsheet I downloaded, from the net as a free excel spreadsheet (ie stock screener), which has the necessary vba code to download stock data to excel, by extracting data from Yahoo & finviz sites. However I would like to know if this is possible to get the same data on Australian stocks only from Yahoo. As the currently data only has information for about 11 AU stocks on the finviz site, the rest are mainly us /other country stocks. I sent an email to Samir Khan who created the file/code two weeks ago, but to date I have not had a reply.


The link is : http://investexcel.net/2487/stock-screener-excel/#comment-3819.


Any assistance would be greatly appreciated.
 
Hi ,


I did not receive a reply to my above email does anyone know how to extract the same stock data for Australian stocks from Yahoo, in regards to the excel spreadsheet and associated VBA code via the following link: http://investexcel.net/2487/stock-screener-excel/#comment-3819.


Which extracts data on only 11 au stocks, the rest are US and International stocks.
 
Hi, ballterrier!


Perhaps you want to give a look at these links (there are many other written by me, just use the search feature at top right of the page, Google button):

http://chandoo.org/forums/topic/macros-web-query-huge-headache-can-anyone-help-me

http://chandoo.org/forums/topic/specific-data-and-html-beyond-excels-capabilities


So if you have the actual URL of the pages from where you want to download the data maybe you can adapt the file of the link of another similar.


Regards!
 
The Excel spreadsheet (ie download stockscreener) is not password protected, I just checked again.


Thanks for the links I will check the out,
 
There are ways to remove the password:


http://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project/1038783#1038783


so if you could upload a file without the password I can check
 
Hi Ballterrier


The spreadsheet you have provided a link to only obtains data from Finviz.com ("The data is downloaded from finviz.com into the “Data” sheet, and a filter table is automatically created.")


However, I have a spreadsheet which does something similar to what you are asking for:


Code:
http://rapidshare.com/files/3565076863/Share%20Trading.xlsm


Wherever you have saved the file, ensure you also create a folder "Stocks", this is where the data will be saved.


I obtained a complete list of shares from http://www.asx.com.au
, but I cannot remember where on that site exactly, but I am sure you will be able to find it.


Yahoo finance requires the ASX code to have ".ax" at the end (i.e. BHP.AX). You will see the example list of stocks and how I have them organised. Hit create workbooks, and the historical data will flow in.


This only provides historical data, looking at your link you are after much more, but I hope this gets you started.


Cheers


Shaun
 
Hi DaveTurton,


I am only an old pensioner that does not know much about vba code or VBA Projects, the stock screener project is called Stock Screener.xls, which has no password on it ? The are seven vba modules as follows that are not locked:


> modExtractData

> modGetCSVFile

> modGetHTMLTable

> modGetYahooHistory

> modGetYahooQuotes

> Module1

> modUtilities.


Don't you just need to look at the code in these to determine how the data is imported into Excel, which you can see all the code (ie not pass word protected) ?


The only thing I can a password on is "ThisWorkbook", dos this mean that the Excel workbook is hidden and this what you want to look at ?


How do I attached the Excel file to a comment post?


Also Shaun thanks for your comments but the file you mentioned only has 3 columns which is too limiting.
 
Hi, ballterrier!

The link that you posted from investexcel.net has the VBA project protected with password, so we can't do anything, at least legal.

If you have a unprotected copy or a version of that file, give a look at the green sticky posts at this forums main page for uploading guidelines.

http://chandoo.org/forums/topic/posting-a-sample-workbook

Regards!
 
Hi SirJB7,


Please use the following link to access the excel file:


http://rapidshare.com/files/308304725/Stock%20Screener.xls.


What I would like to achieve is:


(1) Download the same data from yahoo and/or another site for the same column headers as displayed in the spreadsheet ( I think there are 80/1), for all Australian stocks via the following indices:


Index name ASX code


S&P/ASX 20 XTL

S&P/ASX 50 XFL

S&P/ASX 100 XTO

S&P/ASX 200 XJO

S&P/ASX 200 VIX

S&P/ASX 200 XNV

S&P/ASX 200 XLD

S&P/ASX 300 XKO

ALL ORDINARIES XAO

S&P/ASX MIDCAP 50 XMD

S&P/ASX SMALL ORDINARIES XSO

S&P/ASX All Australian 50 XAF

S&P/ASX All Australian 200 XAT

S&P/ASX200 A-REIT (Sector) XPJ

S&P/ASX 200 Consumer Discretionary (Sector) XDJ

S&P/ASX 200 Consumer Staples (Sector) XSJ

S&P/ASX Dividend Opportunities Index XDI

S&P/ASX Emerging Companies Index XEC

S&P/ASX 200 Energy (Sector) XEJ

S&P/ASX 200 Financials (Sector) XFJ

S&P/ASX 200 Financial-x-A-REIT (Sector) XXJ

S&P/ASX All Ordinaries Gold (Sub Industry) XGD

S&P/ASX 200 Health Care (Sector) XHJ

S&P/ASX 200 Industrials (Sector) XNJ

S&P/ASX 200 Information Technology (Sector) XIJ

S&P/ASX 200 Materials (Sector) XMJ

S&P/ASX 300 Metals and Mining (Industry) XMM

S&P/ASX 200 Net Total Return XNT

S&P/ASX 200 RESOURCES XJR

S&P/ASX 200 Telecommunication Services (Sector) XTJ

S&P/ASX 200 Utilities (Sector) XUJ


(2) Is it possible to select all and/or individually select stocks in each indice seperately via a dropdown box, the download the data for all the 80 plus columns.


Regards,


Ballterrier
 
Hi, ballterrier!

I can't download the file, the message got from rapidshare webpage is this:

"Download not available

The download for this file has not been enabled. Only the user who uploaded it, can enable the download option."

Regards!
 
Hi SirJB7,


I have changed the folder access rights from private to shared, hopefully you can now access the file via: http://rapidshare.com/files/308304725/Stock%20Screener.xls


Regards,


Ballterrier
 
Hi, ballterrier!

Still same error, please fix it or upload file as indicated in previous posts.

Regards!
 
Hi ,


Just BTW , have you checked out this link ? Or is the file the same as what you are uploading ?


http://justspreadsheets.blogspot.in/2009/12/stock-screening-in-excel.html


Narayan
 
Hi Narayan,


Yes the excel spreadsheet is the same, when you select f11 can you access the VBA code in the six VBA modules, or are they password protected. On my copy that I downloaded they are are not password protected.


SirJB7, can you please use the url: http://justspreadsheets.blogspot.in/2009/12/stock-screening-in-excel.html. The only password I can see is one the workbook, but you only need to look at the vba code in the modules, to determine how download stock data from Yahoo instead of Finviz, for Australian stocks correct ?
 
Hi, ballterrier!


The article from http://justspreadsheets.blogspot.in/2009/12/stock-screening-in-excel.html is of Dec 22nd 2009, and the link to the downloadable file from http://www.toteboard.net/Models/ZipFiles/StockScreener.zip is dated Jan 07th 2010.


But I don't see any password at all, neither for the workbook nor worksheets nor VBA project, are you sure we're talking about the same version? If not fully sure, please grant access to your uploaded file at rapidshare.


In the meanwhile I'll give a look at it and post here again.


Regards!


Regards!
 
Hi ,


I downloaded the file ; it's a wonderful piece of work. Whether it is accurate or not , only those who trade in stocks can say.


Neither the workbook nor the sheets nor the VBA code is protected.


But I am not sure who will take up the job of answering your question ; the code has been developed over a period of more than 2 years , and is over a 1000 lines ; I do not know who has the time or the inclination to go through the code , understand it , and then answer your question.


Have you tried posting your question in the same forum viz.


http://justspreadsheets.blogspot.in/2009/12/stock-screening-in-excel.html


Narayan
 
Hi Narayan,


Thanks for agreeing with me that the project is not password protected, and that VBA code in all six VBA modules can be accessed without restriction. Yes I did asked them the same queries I posted in this forum, in the http://justspreadsheets.blogspot.in/2009/12/stock-screening-in-excel.html forum, and got no response. Hence I posted in this forum to see if anyone could find a way to get the stock data on AU stocks instead of US/International stocks, from Yahoo finance or Google finance etc, instead of Finviz.


Hi SirJB7,


As Narayan has confirmed the file is not password protected, is possible for you obtain the file from the following url, as he did:


http://www.toteboard.net/Models/ZipFiles/StockScreener.zip
 
Hi, ballterrier!

As I told you earlier I was yet giving a look at it. And as Narayank991 said it's a huge piece of code to dig in.

Regards!
 
Hi, ballterrier!


Give a look at this file:

https://dl.dropboxusercontent.com/u/60558749/How%20to%20amend%20the%20attached%20VBA%20code%20to%20extract%20stock%20data%20from%20yahoo%20only%20instead%20%28for%20ballterrier%20at%20chandoo.org%29.xlsm

This is the code behind the cyan button in first sheet:

-----

Option Explicit

Sub WebQuery()
' constants
Const ksWSParameters = "Parameters"
Const ksURLPattern = "URLPatternCell"
Const ksURLStep = "URLStepCell"
Const ksWSQuotes = "Quotes"
Const ksData = "DataTable"
Const ksWSWork = "Work"
Const ksDataStart = "Symbol"
Const ksDataEnd = "Showing"
Const ksWildcard = "*"
' declarations
Dim rngP As Range, rngS As Range, rngQ As Range, ws As Worksheet
Dim sURLPattern As String, iURLStep As Integer
Dim lFrom As Long, iReturned As Integer, sURL As String
Dim I As Long, J As Integer, K As Long
' start
' ranges
With Worksheets(ksWSParameters)
Set rngP = .Range(ksURLPattern)
Set rngS = .Range(ksURLStep)
End With
Set rngQ = Worksheets(ksWSQuotes).Range(ksData)
Set ws = Worksheets(ksWSWork)
ws.Activate
' values
sURLPattern = rngP.Cells(1, 1).Value
iURLStep = rngS.Cells(1, 1).Value
rngQ.ClearContents
' process
With rngQ
lFrom = 0
iReturned = -1
Do
' query
sURL = sURLPattern & lFrom
WebQueryData sURL, lFrom
DoEvents
' data
I = 1
Do Until ws.Cells(I, 1).Value = ksDataStart
I = I + 1
Loop
K = 1
Do
If ws.Cells(I + K, 1).Value <> "" Then
For J = 1 To .Columns.Count
If ws.Cells(I + K, J).Value <> "" Then
.Cells(lFrom + K, J).Value = ws.Cells(I + K, J).Value
Else
If ws.Cells(I + K, J + 1).Value = "" Then Exit For
End If
Next J
K = K + 1
End If
Loop Until ws.Cells(I + K, 1).Value Like ksDataEnd & ksWildcard Or _
ws.Cells(I + K, 1).Value = ""
iReturned = K - 1
' cycle
lFrom = lFrom + iURLStep
Loop Until iReturned = 0
End With
' end
Set ws = Nothing
Set rngQ = Nothing
Set rngS = Nothing
Set rngP = Nothing
With Worksheets(ksWSQuotes)
.Activate
.Range("A2").Select
End With
Beep
End Sub

Private Sub WebQueryData(psURL As String, plFrom As Long)
' constants
Const ksWSWork = "Work"
' declarations
Dim ws As Worksheet
Dim I As Integer
' start
Set ws = Worksheets(ksWSWork)
ws.Cells.ClearContents
' process
With ws.QueryTables.Add( _
Connection:="URL;" & psURL, Destination:=Cells(plFrom + 1, 1))
.Name = psURL
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells 'xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage 'xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
' .WebTables = ""
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
DoEvents
End With
' end
Set ws = Nothing
End Sub

-----


I chose to pull out the data directly from Yahoo Finance for market Australia, as this was your original requirement and the embedded solution into the StockScreener file wasn't any simple to find.


This is up to where I arrived. What you're gonna do with this (process it by yourself, build a new StockScreener, ...) it's beyond the scope of these macros. Hope it helps.


Regards!


PS: Despite of the fact that in this link:

http://au.finance.yahoo.com/lookup/all?s=%2a&t=A&m=AU&r=&b=0 (1st) or in:

http://au.finance.yahoo.com/lookup/all?s=%2a&t=A&m=AU&r=&b=1000 (last)

it says "All(5XXX)" that number isn't correct as for Australia there're just up to 1020 which could be checked manually pressing "Next" in previous link.
 
Hi SirJB7,


The above file.code does achieve what I was looking for, it only provides Stock Code, Name and last trade details, not details of data for the 81 columns listed in the Stockscreener spreadsheet. Does the code for this spreadsheet only extract the codes and stock names from Google finance, then goes to Finviz to extract the data for the 81 columns into the spreadsheet? If so I guess the same data will not be possible from Google finance.


My other query is the number of stocks listed does not appear to be correct states 1020, but as far as I know there should be at least 2045, refer: http://www.asx.com.au/asx/research/listedCompanies.do.


I did a little more research on what data google provides, details are:


s - Symbol

n - Name

l - Last Trade (With Time)

l1 - Last Trade (Price Only)

d1 - Last Trade Date

t1 - Last Trade Time

k3 - Last Trade Size

c - Change and Percent Change

c1 - Change

p2 - Change in Percent

t7 - Ticker Trend

v - Volume

a2 - Average Daily Volume

i - More Info

t6 - Trade Links

b - Bid

b6 - Bid Size

a - Ask

a5 - Ask Size

p - Previous Close

o - Open

m - Day's Range

w - 52-week Range

j5 - Change From 52-wk Low

j6 - Pct Chg From 52-wk Low

k4 - Change From 52-wk High

k5 - Pct Chg From 52-wk High

e - Earnings/Share

r - P/E Ratio

s7 - Short Ratio

r1 - Dividend Pay Date

q - Ex-Dividend Date

d - Dividend/Share

y - Dividend Yield

f6 - Float Shares

j1 - Market Capitalization

t8 - 1yr Target Price

e7 - EPS Est. Current Yr

e8 - EPS Est. Next Year

e9 - EPS Est. Next Quarter

r6 - Price/EPS Est. Current Yr

r7 - Price/EPS Est. Next Yr

r5 - PEG Ratio

b4 - Book Value

p6 - Price/Book

p5 - Price/Sales

j4 - EBITDA

m3 - 50-day Moving Avg

m7 - Change From 50-day Moving Avg

m8 - Pct Chg From 50-day Moving Avg

m4 - 200-day Moving Avg

m5 - Change From 200-day Moving Avg

m6 - Pct Chg From 200-day Moving Avg

s1 - Shares Owned

p1 - Price Paid

c3 - Commission

v1 - Holdings Value

w1 - Day's Value Change

g1 - Holdings Gain Percent

g4 - Holdings Gain

d2 - Trade Date

g3 - Annualized Gain

l2 - High Limit

l3 - Low Limit

n4 - Notes

k1 - Last Trade (Real-time) with Time

b3 - Bid (Real-time)

b2 - Ask (Real-time)

k2 - Change Percent (Real-time)

c6 - Change (Real-time)

v7 - Holdings Value (Real-time)

w4 - Day's Value Change (Real-time)

g5 - Holdings Gain Pct (Real-time)

g6 - Holdings Gain (Real-time)

m2 - Day's Range (Real-time)

j3 - Market Cap (Real-time)

r2 - P/E (Real-time)

c8 - After Hours Change (Real-time)

i5 - Order Book (Real-time)

x - Stock Exchange


However apparently there are limitations, you can only use ten of the above tags at a time, and a maximum of 200 stocks. So does this mean you would have to code to loop multiple times to collect data for all stocks (eg 2045 odd) and all 60 plus stock tags.


What I wanted the coded to do is :

(1) Have list box display all the AU indices linked urls (apparently there are 47), refer url:

http://au.finance.yahoo.com/lookup/indices;_ylt=Am3b6VWQZ6n.ol_m9uJx1wBHW49G;_ylu=X3oDMTFjdGY5NWQ1BHBvcwM1BHNlYwN5ZmlTeW1ib2xMb29rdXBSZXN1bHRzBHNsawNpbmRpY2Vz?s=*&t=I&m=AU&r=


(2) When you select an index url I would like the code to select all the stock codes for that index, then extract all the data for those stocks for the sixty odd yahoo tags for each stock into an excel spreadsheet.


eg:


(A) select ^AORD symbol, code would select component url: http://au.finance.yahoo.com/q/cp?s=%5EAORD to select all the stock codes for that indice,


(B) the collate all the data for the 61 stock tags,


(C) Extract the data to the excel spreadsheet,


I would like to have this data to be able to measure the performance of stocks.


I hope you can understand what I am saying.


Regards,


Ron.
 
Hi, ballterrier!


This is a major change of your original requirement and it seems that you actually need the features provided by Stock Screener and not only getting basic data from Yahoo Finance but from Finviz as well as your firstly asked for.


As NARAYANK991 correctly stated the code behind Stock Screener is huge, not well documented, it has more than two or three years, and it'd be very hard first to understand it to then update it to meet your specifications. Speaking by myself this is a job far beyond what it could be done at this forums, at least it'd be so time consuming that deserves a dedicated consultant to do the job, whom should preferably had finance and Excel skills.


My advise is:


a) If you know what specific pages should be accessed at Yahoo site to retrieve the whole information you need, please post them here so as to evaluate the feasibility of adapting the previous code.

I.e., go to XXX link and download all the pages, then go to YYY link and do the same, then for each element in XXX go to ZZZ and do the same... if the chains are not very complex.

If you don't know the links chain or if they are very complex, then switch to b).


b) If you have to go to Finviz and reproduce almost all the Stock Screener features or something alike, then try again contacting the author or hire a specialized consultant, as I can't further assist you with this task at this place. I hope you understand.


Regards!
 
Hi SirJB7,


This is the last try as I do not want this to be a never ending saga, after going through this code at length it appears that it does gat all the data from Yahoo but sends this data to hidden Excel sheets, and Finviz web page. Also the tickers, stock exchange, Indice appear to be on a hidden xl page, so I guess you cannot change the stock codes. I guess they are on the workbook or setup sheets which are hidden.


I have has a look at the yahoo site and the method to get the data is:


(1) Use: http://download.finance.yahoo.com/d/quotes.csv?s=


(2) Enter the stock codes you want the data on, with a "+" beteween each code (eg WWY+STJ)


(3) type: &f= and the ten yahoo tag codes (maximum input)you require data on (eg &f-nl1rr5dp6m8m6j6s7)


So the total example url of 1-3 would be:


http://download.finance.yahoo.com/d/quotes.csv?s=WWY+STJ&f-nl1rr5dp6m8m6j6s7.


Data would be displayed in excel as follows:


Name Price P/E PEG Div/share Price/Book Change from 50-day MA Change from 200-day MA Change from 52-week low Short Ratio

WWY 0 N/A N/A N/A N/A N/A N/A N/A N/A

St. Jude Medical, 41.43 16.5 1.15 0.94 3.07 -0.51% 5.55% 36.96% 3.7.


So my question is how can you code to loop numerous times (eg 8-9 times), to enter all the yahoo tag codes, for the required stocks, creating a wait time to collate all the data, then input the data into an excel spreadsheet.


ie could we loop using the following case code:


Function smfYahooCodeDesc(pCode As String)


'-----------------------------------------------------------------------------------------------------------*

' User defined function to give a description to a Yahoo code (to be used for column headings)

'-----------------------------------------------------------------------------------------------------------*

' 2007.09.09 -- Created function

'-----------------------------------------------------------------------------------------------> Version 2.0h

' > Examples of an invocation:

'

' =smfYahooCodeDesc("l1")

' =smfYahooCodeDesc(A1)

'-----------------------------------------------------------------------------------------------------------*

Select Case pCode

Case "a": smfYahooCodeDesc = "Ask"

Case "a2": smfYahooCodeDesc = "Average Daily Volume"

Case "a5": smfYahooCodeDesc = "Ask Size"

Case "b": smfYahooCodeDesc = "Bid"

Case "b2": smfYahooCodeDesc = "Ask (ECN)"

Case "b3": smfYahooCodeDesc = "Bid (ECN)"

Case "b4": smfYahooCodeDesc = "Book Value"

Case "b6": smfYahooCodeDesc = "Bid Size"

Case "c": smfYahooCodeDesc = "Change & Percent"

Case "c1": smfYahooCodeDesc = "Change"

Case "c6": smfYahooCodeDesc = "Change (ECN)"

Case "c8": smfYahooCodeDesc = "After Hours Change (ECN)"

Case "d": smfYahooCodeDesc = "Dividend/Share"

Case "d1": smfYahooCodeDesc = "Date of Last Trade"

Case "e": smfYahooCodeDesc = "Earnings/Share"

Case "e3": smfYahooCodeDesc = "Expiration date"

Case "e7": smfYahooCodeDesc = "EPS Est. Current Yr"

Case "e8": smfYahooCodeDesc = "EPS Est. Next Year"

Case "e9": smfYahooCodeDesc = "EPS Est. Next Quarter"

Case "f6": smfYahooCodeDesc = "Float Shares"

Case "g": smfYahooCodeDesc = "Low"

Case "g5": smfYahooCodeDesc = "Holdings Gain & Percent (ECN)"

Case "g6": smfYahooCodeDesc = "Holdings Gain (ECN)"

Case "h": smfYahooCodeDesc = "High"

Case "i5": smfYahooCodeDesc = "Order Book (ECN)"

Case "j": smfYahooCodeDesc = "52-week Low"

Case "j": smfYahooCodeDesc = "52-week Low"

Case "j1": smfYahooCodeDesc = "Market Capitalization"

Case "j3": smfYahooCodeDesc = "Market Cap (ECN)"

Case "j4": smfYahooCodeDesc = "EBITDA"

Case "j5": smfYahooCodeDesc = "Change From 52-week Low"

Case "j6": smfYahooCodeDesc = "Pct Chg From 52-week Low"

Case "k": smfYahooCodeDesc = "52-week High"

Case "k": smfYahooCodeDesc = "52-week High"

Case "k1": smfYahooCodeDesc = "Last Trade (ECN with Time)"

Case "k2": smfYahooCodeDesc = "Change & Percent (ECN)"

Case "k3": smfYahooCodeDesc = "Last Trade Size"

Case "k4": smfYahooCodeDesc = "Change From 52-week High"

Case "k5": smfYahooCodeDesc = "Pct Chg From 52-week High"

Case "l": smfYahooCodeDesc = "Last Trade (With Time)"

Case "l1": smfYahooCodeDesc = "Last Trade"

Case "m": smfYahooCodeDesc = "Day's Range"

Case "m2": smfYahooCodeDesc = "Day's Range (ECN)"

Case "m3": smfYahooCodeDesc = "50-day Moving Avg"

Case "m4": smfYahooCodeDesc = "200-day Moving Avg"

Case "m5": smfYahooCodeDesc = "Change From 200-day Moving Avg"

Case "m6": smfYahooCodeDesc = "% off 200-day Avg"

Case "m7": smfYahooCodeDesc = "Change From 50-day Moving Avg"

Case "m8": smfYahooCodeDesc = "% off 50-day Avg"

Case "n": smfYahooCodeDesc = "Name"

Case "n": smfYahooCodeDesc = "Name of option"

Case "o": smfYahooCodeDesc = "Open"

Case "o1": smfYahooCodeDesc = "Open interest?"

Case "p": smfYahooCodeDesc = "Previous Close"

Case "p2": smfYahooCodeDesc = "Percent Change"

Case "p3": smfYahooCodeDesc = "Type of option"

Case "p5": smfYahooCodeDesc = "Price/Sales"

Case "p6": smfYahooCodeDesc = "Price/Book"

Case "q": smfYahooCodeDesc = "Ex-Dividend Date"

Case "r": smfYahooCodeDesc = "P/E Ratio"

Case "r1": smfYahooCodeDesc = "Dividend Pay Date"

Case "r2": smfYahooCodeDesc = "P/E (ECN)"

Case "r5": smfYahooCodeDesc = "PEG Ratio"

Case "r6": smfYahooCodeDesc = "Price/EPS Est. Current Yr"

Case "r7": smfYahooCodeDesc = "Price/EPS Est. Next Yr"

Case "s": smfYahooCodeDesc = "Symbol"

Case "s3": smfYahooCodeDesc = "Strike price"

Case "s7": smfYahooCodeDesc = "Short Ratio"

Case "t1": smfYahooCodeDesc = "Time of Last Trade"

Case "t7": smfYahooCodeDesc = "Ticker Trend"

Case "t8": smfYahooCodeDesc = "1yr Target Price"

Case "v": smfYahooCodeDesc = "Volume"

Case "v7": smfYahooCodeDesc = "Holdings Value (ECN)"

Case "w": smfYahooCodeDesc = "52-week Range"

Case "w4": smfYahooCodeDesc = "Day's Value Change (ECN)"

Case "x": smfYahooCodeDesc = "Exchange"

Case "y": smfYahooCodeDesc = "Dividend Yield"

Case Else: smfYahooCodeDesc = "--"

End Select

End Function

If you /or anyone else does not know how to this, I guess I will have to retry the originators again, and futher reseach on the web, or hire a contractor.

Regards,


Ballterrier
 
Hi, ballterrier!


I was yet beginning to miss you... :)


Tomorrow I hope having a little of time to see where I land after following your new indications, but I can't assure you that. If not, on Monday (I'm at GMT-3, so now it's Thursday midnight and a few minutes).


It's just a matter of time, that's why the originators would have been the first choice, but if the didn't answer, well, we should have to go thru this forums, and if we don't succeed, who knows? Let us wait a little more.


Regards!
 
Status
Not open for further replies.
Back
Top