+ Reply to Thread
Results 1 to 13 of 13

CheckBox Checked

  1. #1
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    CheckBox Checked

    Hi I would like seek some assistance with my code. I cannot get the result I want using the If then else statement using checkbox.

    Here is my code:

    Please Login or Register  to view this content.
    Last edited by 323100N; 03-14-2019 at 10:25 AM.

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: CheckBox Checked

    Are you getting a value from checkbox20
    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: CheckBox Checked

    And you have no value for RowCounter after it is declared

  4. #4
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: CheckBox Checked

    Actually I want the value to go to specific cell (rowncounter 7) if the user Click the Checkbox it will show Pass else Fail. I keep on getting "Pass" value

    Thanks!
    Last edited by 323100N; 03-14-2019 at 10:24 AM.

  5. #5
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: CheckBox Checked

    I dont get it - you have declared Rowcounter as Long (a numeric value) so your desired range is
    Please Login or Register  to view this content.
    but you havent set a value for rowcounter as far as I can see. Correct me if I am just not seeing it

  6. #6
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: CheckBox Checked

    Opps sorry I already updated the code i forgot this portion RowCounter = 0

  7. #7
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: CheckBox Checked

    Hi,
    This works for me
    Please Login or Register  to view this content.
    Click the * Add Reputation below to say thanks.

  8. #8
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: CheckBox Checked

    Probably typo
    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: CheckBox Checked

    It is not a typo.
    This works
    Please Login or Register  to view this content.
    and this works
    Please Login or Register  to view this content.
    and this works
    Please Login or Register  to view this content.
    (at least in office 2016)

  10. #10
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: CheckBox Checked

    @ Dotchijack
    Never knew that you could abbreviate to that extent

  11. #11
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: CheckBox Checked

    @ nigelog I don't like typing.

  12. #12
    Forum Contributor 323100N's Avatar
    Join Date
    08-11-2017
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    272

    Re: CheckBox Checked

    Thank you! It works great now

  13. #13
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: CheckBox Checked

    Glad to help.

+ 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. Delete row of checked checkbox
    By q-tip in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-15-2015, 12:05 PM
  2. [SOLVED] When checkbox is checked it does not copy to new sheet. Only if not checked using false
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2013, 07:59 AM
  3. [SOLVED] VBA code to uncheck checkbox 2 & 3 if checkbox 1 is checked
    By hydz1213 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-25-2013, 03:10 AM
  4. Transferring checked checkbox to another row
    By src16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 02:52 PM
  5. Allow only one CheckBox per line to be checked.
    By kdstokes208 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 11:29 AM
  6. VB checkbox checked?
    By prowsdower in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2009, 12:05 PM
  7. How to have Checkbox A uncheck with checked Checkbox B
    By Texas Aggie 09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2007, 09:29 AM
  8. Is checkbox is checked?
    By Fred S in forum Excel General
    Replies: 2
    Last Post: 10-18-2005, 11:05 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