+ Reply to Thread
Results 1 to 3 of 3

Macro to cut columns in different spreadsheet

  1. #1
    Registered User
    Join Date
    11-11-2013
    Location
    pune
    MS-Off Ver
    Excel 2003
    Posts
    8

    Macro to cut columns in different spreadsheet

    Hello ,

    This is my first post in the forum and I have no knowledge in VB programming
    My requirement is like below

    I have an excel file with page break and I want to populate each page into different tabs/sheets

    Below is the structure

    ColA , ColB , ColC{Page Break}ColA , ColB , ColC{Page Break} ColA , ColB , ColC

    I need the first group to sheet 1 ,second group (after page break) to sheet 2 and the last group to page 3

    Could you please help me to write down the code ?

    Thanks!!

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Macro to cut columns in different spreadsheet

    Hi
    See sample attached. Open the file and run the Macro SplitColumnsToSheets macro.
    Hope this helps.
    Good luck.
    Tony
    Attached Files Attached Files

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro to cut columns in different spreadsheet

    Hi, ARGK,

    your macro could be reduced to
    Please Login or Register  to view this content.
    @pratik4891:

    In case the columns arenīt specified before you could rely on the vertical pagebreaks in the sheet to add the data to the sheets. As I worked with the sample workbook I just copied over the entire columns which could be reduced to the used range of the worksheet:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 10-16-2013, 04:34 PM
  2. Macro to Export Data from one spreadsheet to a Report Spreadsheet
    By stockgoblin42 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-11-2013, 03:59 PM
  3. Copy and Paste Columns from one spreadsheet to another spreadsheet
    By wheatgrass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2012, 05:29 PM
  4. Macro to copy 2 columns to new spreadsheet each new day
    By Joan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2005, 10:50 PM
  5. Replies: 1
    Last Post: 02-08-2005, 06:06 AM

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