Consulting

Results 1 to 4 of 4

Thread: Find all black cells in a range

  1. #1

    Find all black cells in a range

    hi all,

    Im trying to find all black cells in the range F3:CZ137 and then add the Value of 1 into the cell - there are quite a few, so would be a very laborious task. Is this possible with VBA?

    many thanks

  2. #2
    VBAX Newbie
    Joined
    Jun 2012
    Posts
    4
    Location
    Range("F3:CZ137").select
    Selection.SpecialCells(xlCellTypeBlanks).Select

  3. #3
    VBAX Regular
    Joined
    Nov 2011
    Posts
    33
    Location
    [VBA]
    dim rng as range
    dim r as range
    set rng = range("F3:cz137")
    for each r in rng

    next
    [/VBA]

  4. #4
    VBAX Mentor Teeroy's Avatar
    Joined
    Apr 2012
    Location
    Sydney, Australia
    Posts
    414
    Location
    Are the cells formatted black directly or are they the result of a conditional format being applied? The methods to deal with these are quite different.
    _________________________________________________________________________
    "In theory there is no difference between theory and practice. In practice there is." - Chuck Reid

    Any day you learn something new is a day not wasted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •