Unfortunately I can't download the file "CSV" (from the link in the corner), because the link executes the script on the server, I can't run it.
However, I'm thinking that the downloaded html table by my program will allow you to easily obtain the datas.

nse.png (19.83 KiB) Viewed 309 times

PS. Especially in the program I used two methods to obtain data to show (teach) how this can be done.
The first method uses OLE, the second uses hbTIP.

Hi Edward,
Many thanks for the program. You are just great !.
I can download the index information from nseindia website now.
The information is in html format. Can you please tell me a way to read this file and import the information in preferably CSV file.
Thanks
RPC

RPC, you don't need read a html file.
All datas are at recv variable.
Just find <div id='csvContentDiv' style='display:none;'> and cut string to </div>
Char : is record's separator (new line in csv format)

Hi Edward
Great ! I got the info in csv file.
Many Thanks.
Further I want to know about following two variables
Query:="?indexType="+STRTRAN(iType,' ','%20')+"&"+"fromDate="+qDate(fromDate)+"&"+"toDate="+qDate(toDate)
Can this be used to download from any website, say I want to download from another website-www.bseindia.com-similar information. can i use the same query ? or each website has different format of query ?
cGet:="/products/dynaContent/equities/indices/historicalindices.jsp"+Query
the website's address is as followshttps://www.nseindia.com/products/conte ... x_data.htm
why did you put "dynaContent" instead of "Content" and "historicalindices.jsp" instead of "historical_index_data.htm"
Please guide.
Thanks
RPC

The queries depends of host. Different query is for Google and others for Yahoo, and others for each host.
You need to analyze the code html web pages for which you want to query. Or look for information from the webmaster to send queries.

Hi Edward
Brilliantly explained !
I have understood quite a lot from the way you have explained it.
I would like to learn more about this so that I can download from another website.
Could you tell me what should I read on the internet, perhaps a quick tutorial on "querying", which would teach me.
If it is handy, could you please point out to some links.
Many thanks once again.