+ Reply to Thread
Results 1 to 2 of 2

Checkbox 'ticks' after clicking 'cancel' in resulting InputBox

  1. #1
    Registered User
    Join Date
    08-26-2022
    Location
    West Midlands, United Kingdom
    MS-Off Ver
    Office 365
    Posts
    32

    Checkbox 'ticks' after clicking 'cancel' in resulting InputBox

    Good afternoon, extreme beginner with VBA.

    I debated whether or not to upload a sample workbook as per the rules as I think this is rather simple.

    I have a Checklist, consisting of several check boxes, when one of these in particular is ticked, a message box pops up asking the user to confirm the information required, however if the user clicks 'Cancel' the box will still tick as if the information was inputted.

    Is there a way to stop it from tickiing upon a user pressing cancel?

    the basic code is as follows:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Checkbox 'ticks' after clicking 'cancel' in resulting Msg Box

    There are lots of reasons to attach an actual file, even if you think your question is simple. The code you posted is not sufficient to give you a reliable answer to your question.

    Note that you are using an Input Box, not a Message Box.

    There is nothing in the code you posted that would cause the checkbox to be unticked. Not sure why you expect that to happen.

    Where is Line declared and what is its value when this code runs?

    What kind of response is the user expect to give in the InputBox?

    Based only on the one line of code you gave us I might try this.
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Replies: 1
    Last Post: 03-20-2017, 10:40 AM
  2. [SOLVED] MACRO: If user clicks cancel in inputbox,then do nothing. Problem with inputbox appearance
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2015, 04:33 AM
  3. [SOLVED] inputbox cancel
    By jacobsoo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2013, 07:03 AM
  4. remove checkbox ticks from last use upon opening user form
    By TheNewGuy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-20-2013, 11:38 AM
  5. InputBox and Cancel
    By michaelaindia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2012, 04:32 AM
  6. [SOLVED] Cancel my Inputbox
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 11:05 AM
  7. [SOLVED] Ticks in cells - Checkmarks in cell - without checkbox
    By sebt in forum Excel General
    Replies: 0
    Last Post: 01-20-2006, 06:40 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