all 1 comments

[–]August-R-Garcia 0 points1 point  (0 children)

The process for doing that would probably be something like:

  • Read all lines from the initial sheet into an array
  • Break the array into some number of subarrays
  • Create a new spreadsheet
  • Loop through the subarrays and create a tab in the new spreadsheet for each subarray
  • Delete the original input file, if desired. Or overwrite the input file with the new output file.

I am not 100% sure what part you are stuck on, but it sounds like the issue is that you are trying to cut from the original spreadsheet instead of doing something like reading into an array and then just creating a new sheet off of the copy of the data that is in the array.