Results 1 to 16 of 16

Export Selected Columns to a New Workbook

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Export Selected Columns to a New Workbook

    I would like to be able to run a macro that exports (moves a copy) a single WorkSheet from a Workbook into a standalone Workbook, but I only want selected columns exported. The exported worksheet needs five things:

    1. To have the same worksheet name
    2. To have the header row frozen and filter arrows in place automatically
    3. For the exported columns to be adjacent to each other
    4. All values in the exported worksheet to be Paste Values to avoid any links to the original file
    5. All cell formatting to remain in place, so header row colours, conditional formattting etc., i.e. Paste Format

    I've attached a simple example, the main sheet shows how the original sheet would look, the second sheet shows how the exported file should look, so in the example, it is only the columns with red headers that should then appear in the exported file.

    The main sheet has around 70 columns, but I'm happy to specify these in the code as these may change over time.

    Many thanks
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hide columns in a workbook that is not selected
    By philozelda in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2015, 02:09 PM
  2. Copy columns from one user selected workbook to another
    By bellfano in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2014, 03:29 AM
  3. import only selected columns from different workbooks to master workbook
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-15-2014, 11:51 AM
  4. [SOLVED] Export selected column to new workbook
    By Manish84 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2014, 03:50 AM
  5. Copy worksheets and selected columns into new workbook and name each file uniquely
    By Mad-Dog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2013, 08:00 AM
  6. I would need a macro to export data from base example workbook to export worbook
    By slato8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2012, 11:21 AM
  7. Export each selected sheet to new workbook via pastespecial and save
    By jason117 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2011, 08:06 PM

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