+ Reply to Thread
Results 1 to 3 of 3

Delete Columns with Macros

  1. #1
    Registered User
    Join Date
    08-28-2014
    Location
    VA
    MS-Off Ver
    2010
    Posts
    34

    Question Delete Columns with Macros

    Hi,

    I have created an Excel Spreadsheet with Macros that will "Add New Person" for tracking qualification purposes (in the "Ph 1 & Ph 2" tab AND "Ph 3 & Ph 4" tab). However, I am trying to figure out a way to delete a person if they ever leave the team. I know that I could just select the columns and delete that way, but I was really wanting a way to just click a button to "delete team member" or something like that. I would want to delete the 5 columns that reference that person (columns G:K for "Ph 1 & Ph 2" tab and columns F:J for "Ph 3 & Ph 4" tab). This macros would need to reference the person directly below it...

    for example, if I add a new person (columns L:P for "Ph 1 & Ph 2" tab), then I would want a way to delete those specific columns.

    Not sure if this is possible. I have attached the spreadsheet for reference.


    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Delete Columns with Macros

    Record yourself doing it, CTRL F find the name, then select the whole row, then delete. Stop the macro, and you've got the code.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    08-28-2014
    Location
    VA
    MS-Off Ver
    2010
    Posts
    34

    Re: Delete Columns with Macros

    Hi,

    Thank you for the quick response but that didn't seem to work for me

+ 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. How to create Macros buttons to add or delete columns and rows.
    By damienchew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2014, 08:39 PM
  2. [SOLVED] Delete multiple empty cells in multiple columns and moving data up, witout Macros
    By CoraF in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2012, 08:23 AM
  3. Macros: find certain text and delete columns
    By Womble6 in forum Excel General
    Replies: 3
    Last Post: 05-11-2011, 01:27 PM
  4. Replies: 5
    Last Post: 02-17-2010, 02:02 PM
  5. How to Delete Another WorkBook Macros using Macros.. Possible?
    By ddiicc in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-19-2008, 11:34 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