+ Reply to Thread
Results 1 to 2 of 2

Checkbox problem

  1. #1
    Patrick Simonds
    Guest

    Checkbox problem

    Not sure why the following code returns an Object Required Error:

    If CheckBox1.Value = True Then
    rng(1, 6) = "Exempt"
    End If

    What I want to have happen is for the word Exempt to be placed in the rng(1,
    6) when there is a check in Checkbox1



  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning Patrick Simmonds

    Does this help:

    Range(Cells(1, 6), Cells(1, 6)) = "Exempt"

    Range is the command to identify a range, but you need two lots of identifiers, a start and a finish, that in this case are the same as we are identifying a single cell.

    HTH

    DominicB

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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