on-internet
← Community

Can anybody suggest another method to split a large Excel file into multiple files in any tool other than VBA?

Stack Overflow ·

I need to split a large Excel file into multiple small files based on the first five digits of the values in a column. For example, I have values 1396A0001A,1396A0002A to split based on the first five digits, 1396A, into a separate sheet. I have VBA code to do this, but it is taking too much time - 3 hours to split the entire file of 15000 records in a file. Can you suggest any other method to split the file? Sub SplitSheetIntoMultipleWorkbooksBasedOnColumn() Dim objWorksheet As Excel.Worksheet Dim nLastRow As Integer, nRow As Integer, nNextRow As Integer Dim strColumnValue As String Dim objDi

Comments

Sign in or sign up to comment and upvote.

No comments yet.