Friends,
Those of you who are facing the runtime error 5 problem may try the following solution. Probably you have written the wrong yahoo scrip symbol in the text file. Yahoo does not support symbols more than 12 characters, of which 3 are taken up by ".NS"or ".BO". Therefore, any symbol having more than 9 characters to the left of .NS will give error no. 5. So trim the excess characters to the right of the symbol and before .NS or .BO.E.g INFOSYSTCH is the symbol for Infosys in nse. It has 10 characters. Cut the last C and add .NS to get nse infosys symbol from yahoo. Similarly BHARTIARTL would be BHARTIART.NS, HINDUNILVR will be HINDUNILV.NS etc.
I hope this solves your problem. It has solved mine.
Laksh
Those of you who are facing the runtime error 5 problem may try the following solution. Probably you have written the wrong yahoo scrip symbol in the text file. Yahoo does not support symbols more than 12 characters, of which 3 are taken up by ".NS"or ".BO". Therefore, any symbol having more than 9 characters to the left of .NS will give error no. 5. So trim the excess characters to the right of the symbol and before .NS or .BO.E.g INFOSYSTCH is the symbol for Infosys in nse. It has 10 characters. Cut the last C and add .NS to get nse infosys symbol from yahoo. Similarly BHARTIARTL would be BHARTIART.NS, HINDUNILVR will be HINDUNILV.NS etc.
I hope this solves your problem. It has solved mine.
Laksh