+ Reply to Thread
Results 1 to 3 of 3

Macro to Clear CF in Col G where cells are Blank

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

    Macro to Clear CF in Col G where cells are Blank

    I have tried to write code to clear CF in Col G where cells are blank , but code does not clear this

    Kindly test & annd code

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

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Macro to Clear CF in Col G where cells are Blank

    CF as

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Your macro sets LASTROW (=6) but your CF is all of column G and does allow for blank cells (treated as zero)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

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

    Re: Macro to Clear CF in Col G where cells are Blank

    Thanks for the help John. Using formula much better

+ 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. Clear cells that are empty but not actually blank
    By chrisellis250 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2019, 07:47 AM
  2. vba CODE TO FILTER OUT BLANK CELLS/GHOST CELLS and clear them
    By r1shabharora in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2019, 06:01 PM
  3. VBA Code to Clear Cells That Appear Blank Within a Range
    By Rizzo09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-25-2018, 04:01 AM
  4. Can't clear non-blank empty cells
    By jomili in forum Excel General
    Replies: 18
    Last Post: 02-09-2016, 02:51 PM
  5. Clear non-blank cells in range
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2012, 10:05 AM
  6. Excel 2007 : Clear 3 cells above a blank row
    By chesterwint in forum Excel General
    Replies: 14
    Last Post: 08-30-2010, 12:27 PM
  7. [SOLVED] Clear blank cells
    By Reed in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-21-2005, 09: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