Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a file that i have added a control that allows the user to
change criteria and recalculate the worksheet. I have developed the code that loops through all the scenarios I enter and prints each one. What I really want to do is loop through these scenarios and then instead of printing, create a new separate file, then keep moving through the loop and creating new files Thanks in advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this
from for RowCount = 1 to 10 Rows(RowCount).Printout next RowCount to set Oldsht = activeworkbook.activesheet for RowCount = 1 to 10 set newbk = Workbooks.add Oldsht.Rows(RowCount).Copy _ Destination:=newbk.Rows(1) newbk.saveas filename:="abc"&RowCount&".xls" activeworkbook.close next RowCount "JackSmiley" wrote: I have a file that i have added a control that allows the user to change criteria and recalculate the worksheet. I have developed the code that loops through all the scenarios I enter and prints each one. What I really want to do is loop through these scenarios and then instead of printing, create a new separate file, then keep moving through the loop and creating new files Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Network Files creating temporary files | Excel Discussion (Misc queries) | |||
CREATING PDF FILES FROM EXCEL FILES | Excel Discussion (Misc queries) | |||
Creating a Dynamic .XLS file from two other .XLS files | Excel Discussion (Misc queries) | |||
how to default WritePassword under excel workbook property for any files as long as those files are the offsprings of the parent file | Excel Programming | |||
creating an XLS file from " files" data in a Folder | Excel Discussion (Misc queries) |