I've Emp # and Name written from A1:B100.
I want to save this file for these 100 employees with the help of "Save As".
The name of file would be Emp#+Name.
Is there any way to do it?
Excel Facts
What do {} around a formula in the formula bar mean?
when you click on save as -- at the bottom were it says file name type in employee # and name and click save
just make sure you look to were you Save in at top
for each cell in ThisWorkbook.Sheets("theSheet").Range("A1:A100")
ThisWorkbook.SaveAs(cell & cell.offset(0,1) & ".xls")
next
Test this one range "A1" first, not "A1:A100"... unless you want to sit through a hundred save events only to find out something went awry at the very end.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.