+ Reply to Thread
Results 1 to 8 of 8

Macro to clear CF in Col B and copy non CF items

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Macro to clear CF in Col B and copy non CF items

    I have a check box that once ticked uses CF formatting to highlight the cells

    I need a macro to clear only the items highlighted by CF and then to move all the un-highlighted items in the blank cells above

    I have shown what the final result should look like on sheet "Check List after Running Macro"

    Your assistance in this regard is most appreciated
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Macro to clear CF in Col B and copy non CF items

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Macro to clear CF in Col B and copy non CF items

    Thanks for the help Bo_Ry

    Your code works perfectly

  4. #4
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Macro to clear CF in Col B and copy non CF items

    Hi Bo_Ry

    My apologies

    The code is not working as intended

    i need the items coloured via CF to be cleared and the non -colored items to me moved up so that there are no blanks between the text

    Please see sheet "Check List after Running Macro" to see what the final result must look like


    It would be appreciated if you would kindly amend your code
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Macro to clear CF in Col B and copy non CF items

    Have posted a similar type question on https://www.mrexcel.com/board/thread...col-d.1171484/

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Macro to clear CF in Col B and copy non CF items

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  7. #7
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,722

    Re: Macro to clear CF in Col B and copy non CF items

    Thanks Sintek. Code works perfectly

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,210

    Re: Macro to clear CF in Col B and copy non CF items

    .........................
    Thanks.png

+ 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] Macro to clear Fill Coloured items only from row 9 in Col E
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2020, 11:51 PM
  2. [SOLVED] Macro to clear specific Items
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2019, 03:00 AM
  3. [SOLVED] Need help for a macro to copy, paste and clear data
    By Roco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2016, 05:28 AM
  4. Clear, Copy formula macro Chart
    By Sekars in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-21-2016, 12:00 AM
  5. Macro to copy Dyanmic lists then copy sheet and clear the original data
    By twiggywales in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2012, 01:06 PM
  6. Macro for Copy and Clear contents
    By nms2130 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-02-2009, 01:55 PM
  7. How clear the cut/copy blinking boxes after macro
    By John in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2006, 07:40 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