You are welcome. As I said, it would be easy to change the variables. Don Guillett SalesAid Software dguille...@gmail.com
From: Indrajit $nai Sent: Wednesday, November 02, 2011 4:55 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Required help in macro / vba coding........open a file in a particular folder Thanks.....your formula is working..... On Wed, Nov 2, 2011 at 4:40 AM, dguillett1 <dguille...@gmail.com> wrote: If you only have that many why not just do thru a formula where the file does not have to be open. Notice the placement of the ' You could even use indirect to put in the file name, etc ='C:\aa\[3.xls]Sheet24'!A3 ='C:\Users\Administrator\Desktop\05112012\[1.xls]sheet1'!a1 Don Guillett SalesAid Software dguille...@gmail.com From: Indrajit $nai Sent: Tuesday, November 01, 2011 4:36 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Required help in macro / vba coding........open a file in a particular folder Hi All, I need your help regarding a macro issue. Suppose I have 5 folder in different in my computer desktop and each folder contains a excel file (same name). Now I want a macro which will open each folder and then open the file and will copy the first cell then paste it in my current file cell, like a1 then a2..... Now if I change my folder path, it open that folder then the file and contuniue the above mention work. If the particular folder name; which mention in the excel file not found should give a message then again it will continue. My problem is, it's opening the particular folder, if I change the folder name or changing the path in the current excel file it is not working. Is it possible to do this job through a macro! if possible then please send me the code. Thanks in advance. -- Indrajit talk2indra...@gmail.com Disclaimer: This electronic message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. -- FORUM RULES (925+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (925+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- Indrajit Snai +91 9051755745 talk2indra...@gmail.com http://globalwarming-globalissue.blogspot.com/ Disclaimer: This electronic message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. -- FORUM RULES (925+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (925+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com