+ Reply to Thread
Results 1 to 5 of 5

How to change Macro to delete the " list of column name" from delete all but list of names

  1. #1
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    How to change Macro to delete the " list of column name" from delete all but list of names

    How to change Macro so that it deletes the list of columns, as it works now it deletes everything not in the column.

    I have tryed but could not get it.

    Thanks



    Please Login or Register  to view this content.
    Last edited by capson; 08-28-2013 at 09:41 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    What are the headers of the columns you want to delete and which row are they in?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: How to change Macro to delete the " list of column name" from delete all but list of n

    Hello Norie,

    Your code worked perfectly.

    I would like to use your code to copy a list of columns and past them into a different sheet I tried (to no avail)

    Please Login or Register  to view this content.
    can your code be altered to do this?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Where do you want to copy the columns to in the other sheet?

  5. #5
    Forum Contributor
    Join Date
    07-11-2010
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: How to change Macro to delete the " list of column name" from delete all but list of n

    I want to paste them in the order they are in the list starting in column and cell A1

+ 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: 8
    Last Post: 02-11-2013, 03:53 AM
  2. Delete Row if Cells in specifc Column Equals "X" Macro Needed
    By Ivanur55 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2012, 02:23 PM
  3. "PICOBJ.DELETE" to remove shape: Problem when validation list populated
    By bubastisbastet in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2010, 05:04 PM
  4. Replies: 0
    Last Post: 02-23-2006, 01:33 PM
  5. [SOLVED] How to delete rows when List toolbar's "delete" isnt highlighted?
    By Linda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2005, 05:15 PM

Tags for this Thread

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