ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving Worksheet from Workbook with Names from Cell Values (https://www.excelbanter.com/excel-programming/350630-saving-worksheet-workbook-names-cell-values.html)

Marc Baumann

Saving Worksheet from Workbook with Names from Cell Values
 
Hello!

I have a workbook with two worksheets: alpha and beta.

In alpha I have a list of names in column D. The list of names can vary
and I have the total number of names in cell B2 (counta(D:D)).

In beta I have a questionaire.

Now I'd like to have a macro that saves the worksheet beta only but
multiple times. Each beta worksheet should be saved as an excel file
with the name comming from the namelist in alpha/column D. The saving
should be finished once beta is saved under each name.

Example 1:
alpha contains in column D: john, paul, jerry
then beta alone should be saved as john.xls, paul.xls and jerry.xls

Example 2:
alpha contains in column D: john, richard, tim, edmund, mark
then beta alone should be saved as john.xls, richard.xls, tim.xls,
edmund.xls and mark.xls

Hope somebody can help me cause I have no clue with macros (yet).

Thanks
Marc Baumann



All times are GMT +1. The time now is 02:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com