I have a workbook that contains about 100 worksheets. I want to create 25 individual workbooks that contain 4 sheets each. I am trying to write an Excel VBA foor loop
that will do such - but it is generating a workbook for every 1 page.
totalPages = PDDoc.GetNumPages
For i = 1 To totalPages - 4
'This is where you would add the workbook and transfer the page
Next i