+ Reply to Thread
Results 1 to 3 of 3

How to split excel file into separate workbooks based on number of columns?

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to split excel file into separate workbooks based on number of columns?

    Hello Everyone,

    I have a worksheet having around 400 columns and 50k rows of data which might vary in future.

    1. I have to split this worksheet into separate excel files with suppose 100 columns in each file.
    2. The number of columns in each file can be determined based on some factor as if the file exceeds 255 columns , the data is not being handled by our application.
    3. The first column in the file should repeat in all the splitted files as it is the primary key data.

    Can anyone please help me out with this as I am very much new to macros and VBscripting for excel.

    Thanks in advance!!

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: How to split excel file into separate workbooks based on number of columns?

    Hi,

    why do you need macro for this? Why not just copy the columns with ctrl C ctrl V to a new workbook? You don't need a lot of copying, only 4-5 times, ~100 columns each time.

  3. #3
    Registered User
    Join Date
    10-31-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to split excel file into separate workbooks based on number of columns?

    Hi RHC,

    I have lot of files like that, and there can be chance of getting more than 400 columns. Thats why I am looking out for a macro or an automation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1