Hi Praveen, I think either you can define all 40 links in one workbook and than you link that cell reference in macro. Otherwise, Its better to upload a example sheet of the same.
- Manish On Oct 11, 12:13 pm, Praveen Khunte <praveen.khu...@gmail.com> wrote: > Hi Everyone > There is a specific requirement I came across while developing a tool > in excel. I am using 40 different links of the same website to extract > data in a single sheet of excel through feature "External Data from > Web". Now the problem is the link changes when month changes. > > For example for October month, first link will > behttp://www.nseindia.com/marketinfo/fo/foquote_printer.jsp?key=OPTIDXN... > For October month, second link will > behttp://www.nseindia.com/marketinfo/fo/foquote_printer.jsp?key=OPTIDXN... > Number of links are 40 which increases with CE value > > Link will change when month changes to November, example of first link > ishttp://www.nseindia.com/marketinfo/fo/foquote_printer.jsp?key=OPTIDXN... > It’s pretty simple to define a logic in excel which creates a link > automatically when month changes, so did I. I hope you got this. > > In the present situation I am using October month links to get > external data from web. I fear that when month changes to November, > the current links will not work and I have to replace all the 40 links > with November month series in the sheet. Is there any method through > macros which will automatically replace the October month links with > November month links so that I continue to receive data without > iterative process of cut and paste? > If you are not clear of the question, please ask me to upload an > example sheet of the same. > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,500 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---