+ Reply to Thread
Results 1 to 3 of 3

Deleting rows from sheet 1 when table on sheet 2 does not have the data anymore

  1. #1
    Registered User
    Join Date
    05-20-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    21

    Deleting rows from sheet 1 when table on sheet 2 does not have the data anymore

    Hi, I really hope someone can help me out this time round. 3rd time posting and hoping someone out there can solve my problem.

    Currently, Im running a button macro. When this button is clicked, the table from "315 Employee Data" will copy the names from column C to "315" sheet B12 onwards.

    Now, what i want is when I update the employee data on "315 employee data" sheet, I want "315" sheet to automatically match the names from "315 employee data", delete and add names when I add or remove employees from the column the next time i click on that button again.

    After the above is achieved, when i add new employees,run the macro and it displays the updated list of names, I want "315" sheet column A to do automatic numbering.

    I have attached the file for your reference.samplesample.xlsm

    Any kind soul out there that can help me fix this?!?!?!! Dying here. Please help..

    Charmaine

  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: Deleting rows from sheet 1 when table on sheet 2 does not have the data anymore

    Hi Charmaine
    I have made some minor changes to your button Macro and updated the formulas in column A so you get automatic numbering up to row 150. You will need to change the links to your source data then I think you will be there.
    Hope this helps.
    Good luck.
    Tony
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-20-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    21

    Re: Deleting rows from sheet 1 when table on sheet 2 does not have the data anymore

    Dear Tony,

    The macro works like a miracle!!!! Thank you so much for helping me out. I almost wanted to give up already!

    Thank you for spending time on this. I appreciate it a whole lot.

    Regards,
    Charmaine

+ 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. Deleting rows on one sheet based on a condition in another sheet in the same file
    By Steve2107 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2014, 06:48 AM
  2. Changing code from deleting rows to cut/paste rows into another sheet and delete blank row
    By kmarshall6576 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2013, 01:54 AM
  3. Replies: 1
    Last Post: 07-15-2012, 08:52 AM
  4. Errors in my formulas in sheet 1 when deleting data in sheet 2
    By Sucha304 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2012, 02:22 AM
  5. Deleting Rows using data from other workbook/sheet
    By ric.sinclair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2008, 03:22 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