Dividing contents of 1 excel file into many
I'm trying to make a macro that does the following:
- Asks how many new excel files you'd like to create
- Counts all of the records from the main file and divides them up evenly between the new files
For instance, my main file will likely have 500 records. If I say I want 5 files, I want it to count how many records the main file contains (500), and create 5 new files with 100 records each.
I'm very new to VBA and have no idea on the syntax to use.
Thanks,
Wire
|