Results 1 to 9 of 9

Changing Range

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Changing Range

    Got some Great help today on a project from a member here,I would like to change the range that it checks. Having no luck,so I'm doing something wrong.

    Good Code
    If Sheets("60 Circuits").Range("C8").Value <> "" Then
            Sheets("Main").CommandButton6.BackColor = vbGreen
        Else
            Sheets("Main").CommandButton6.BackColor = RGB(224, 224, 224)
        End If
    Not working Code
    If Sheets("60 Circuits").Range("C8:D37").Value <> "" Then
            Sheets("Main").CommandButton6.BackColor = vbGreen
        Else
            Sheets("Main").CommandButton6.BackColor = RGB(224, 224, 224)
        End If
    Trying to get it to check any cell in that range?
    Last edited by zplugger; 11-26-2019 at 08:49 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Clear Cell range upon Changing data in difference Range
    By snuffnchess in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2016, 02:22 AM
  2. Replies: 15
    Last Post: 12-22-2014, 08:03 AM
  3. Macro for sorting range when range is continuously changing
    By lukasj13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2014, 10:47 AM
  4. Replies: 0
    Last Post: 10-22-2013, 01:04 PM
  5. Replies: 0
    Last Post: 03-21-2013, 05:26 AM
  6. Replies: 6
    Last Post: 11-12-2011, 05:19 AM
  7. Changing the background of a range based on text in the range.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-24-2008, 04:29 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