Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
Don, What the difference b/w your code and Ashish code??? Thanks Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
Mine should have removed a line. It simply loops thru a LIST Sub test() For i = 1 To 12 ActiveWorkbook.SaveAs C:\Documents and Settings\ASHISH\Desktop\ABC\book cells(I,”a”) .xlsx Next i End Sub A simple one I used for testing Option Explicit Sub CopyActiveWorkbookBasedOnList() For i = 1 To 2 ActiveWorkbook.SaveAs C:\thisfolder\book Cells(i, 1) .xls Next i ActiveWorkbook.Close End Sub From: SridharBL Sent: Tuesday, September 13, 2011 6:49 AM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files Don, What the difference b/w your code and Ashish code??? Thanks Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
Hi Ashish, appreciate you help. The code is partly okay. The above code created a new files with those x and y sheets. Can you alter the above macro code, so that those x and y sheets will get pasted to already existing (12)files? Appreciate your help once again. Regards, Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
For each in a LIST in range(“a1:a12”) Sub test() For i = 1 To 12 ThisWorkbook.Sheets(Array(Sheet1, Sheet2)).Copy ActiveWorkbook.SaveAs C:\Documents and Settings\ASHISH\Desktop\ABC\book cells(I,”a”) .xlsx ActiveWorkbook.Close Next i End Sub From: ashish koul Sent: Wednesday, September 07, 2011 9:34 PM To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files Hi, Sub test() For i = 1 To 10 ThisWorkbook.Sheets(Array(Sheet1, Sheet2)).Copy ActiveWorkbook.SaveAs C:\Documents and Settings\ASHISH\Desktop\ABC\book i .xlsx ActiveWorkbook.Close Next i End Sub On Wed, Sep 7, 2011 at 5:29 PM, SridharBL sridhar@gmail.com wrote: Ashish, I need to save the sheets of One Workbook to 12 other workbooks. Say, I have One Master excel work book with sheets x and y. These x and y sheets should be moved to other 12 workbooks. So, now all the 12 Work books will have x y sheets as of Master excel work book. Thanks, Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- Regards Ashish Koul akoul.blogspot.com http://akoul.posterous.com/ akoul.wordpress.com My Linkedin Profile P Before printing, think about the environment. -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
Ashish, I need to save the sheets of One Workbook to 12 other workbooks. Say, I have One Master excel work book with sheets x and y. These x and y sheets should be moved to other 12 workbooks. So, now all the 12 Work books will have x y sheets as of Master excel work book. Thanks, Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
Hi, Sub test() For i = 1 To 10 ThisWorkbook.Sheets(Array(Sheet1, Sheet2)).Copy ActiveWorkbook.SaveAs C:\Documents and Settings\ASHISH\Desktop\ABC\book i .xlsx ActiveWorkbook.Close Next i End Sub On Wed, Sep 7, 2011 at 5:29 PM, SridharBL sridhar@gmail.com wrote: Ashish, I need to save the sheets of One Workbook to 12 other workbooks. Say, I have One Master excel work book with sheets x and y. These x and y sheets should be moved to other 12 workbooks. So, now all the 12 Work books will have x y sheets as of Master excel work book. Thanks, Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- *Regards* * * *Ashish Koul* *akoul*.*blogspot*.com http://akoul.blogspot.com/ http://akoul.posterous.com/ *akoul*.wordpress.com http://akoul.wordpress.com/ My Linkedin Profile http://in.linkedin.com/pub/ashish-koul/10/400/830 P Before printing, think about the environment. -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
Hi Noorain, The code in the weblink did not work. This just created a new workbook with a single sheet. Appreciate for any other options.. Regards, Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Re: $$Excel-Macros$$ Macro to Copy the sheets from One file to Multiple Files
Dear Sridhar, Please use below link to solve ur query http://akoul.blogspot.com/search/label/Merge%20Data%20from%20multiple%20workbooks%20for%20specific%20sheets%20only http://akoul.blogspot.com/search/label/Merge%20Data%20from%20sheet%201%20from%20multiple%20workbooks%20to%20single%20workbook On Mon, Sep 5, 2011 at 5:18 PM, SridharBL sridhar@gmail.com wrote: Dear Experts, I would request a macro, which can copy the Sheets(two) from one Master file to other different Excel Files(12 files). I would appreciate your help in this matter. Thanks, Sridhar BL -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- Thanks regards, Noorain Ansari *http://noorain-ansari.blogspot.com/* http://noorain-ansari.blogspot.com/ -- -- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel