+ Reply to Thread
Results 1 to 4 of 4

Marlett chekboxes - Copying and Deleteing Rows on Another Worksheet

  1. #1
    Registered User
    Join Date
    01-06-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    9

    Marlett chekboxes - Copying and Deleteing Rows on Another Worksheet

    Hi All,

    Im trying to create file where the user enter data on one worksheet and if copy (marlett checkbox) is selected, the data is copied to another worksheet. If the Marlett checkbox is unclicked, the data is deleted from the other worksheet.

    I have managed to find some vba code online which does this. After some modifying, I managed to get it working marlett checkboxes, copying and deleting, but there is some errors in the deleting part.

    When deleteing, the match is the column A which is not unique, it deletes the first row with matching cell,

    Can anyone help, so that the match is both columns B & C.

    I have attached a macro Excel, sorry not sure of the etiquette, please let me know if I should attach a normal Excel file.

    Checkbox Test.xlsm

    Many thanks in advance.

    Taibe

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Marlett chekboxes - Copying and Deleteing Rows on Another Worksheet

    Simplest answer... since the only column that appears to have unique values is column B, change your "search" to go by that column instead.

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-06-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Marlett chekboxes - Copying and Deleteing Rows on Another Worksheet

    Hi JBeaucaire,

    Thanks for the quick response.

    Using your code, the matching is now in column B, but the possiblity of having the same column B is quite high. Would there be any way for it to match column B and column C then deleting the row?

    Thanks

    Taibe

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Marlett chekboxes - Copying and Deleteing Rows on Another Worksheet

    Like so:

    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] deleteing rows
    By mike02 in forum Excel General
    Replies: 12
    Last Post: 08-16-2012, 02:07 AM
  2. Marlett Checkbox Help (Marlett Optionbox)
    By mfernandes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2011, 12:05 PM
  3. Deleteing Unneeded Rows
    By mapguy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-15-2007, 04:21 PM
  4. Deleteing empty rows
    By Ken G. in forum Excel General
    Replies: 3
    Last Post: 06-27-2005, 09:05 PM
  5. [SOLVED] Deleteing some Rows
    By Deepwater in forum Excel General
    Replies: 2
    Last Post: 04-01-2005, 02: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