+ Reply to Thread
Results 1 to 4 of 4

Toggle Input Messages On and Off (Validated Cells)

  1. #1
    Registered User
    Join Date
    10-19-2006
    Posts
    37

    Toggle Input Messages On and Off (Validated Cells)

    Hi,

    I have a large Excel workbook, in which I have used validation on many cells accross multiple worksheets. I have put input messages in each of the cells with validation but want to provide the user with the capability to turn these on and off.

    I tried the following code:

    Please Login or Register  to view this content.
    Unfortunately this code returns errors, probably becasue not all cells have vaidation and different cells have different validation.

    Can anyone suggest a script that might work?

    Thanks,

    JW191.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: Toggle Input Messages On and Off (Validated Cells)

    this will toggle

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-19-2006
    Posts
    37

    Re: Toggle Input Messages On and Off (Validated Cells)

    Quote Originally Posted by Andy Pope View Post
    this will toggle

    Please Login or Register  to view this content.
    Hi Andy,

    Many Thanks for your reply - unfortunately I can't get teh code to work. I removed the On Error statement and it seems to stall on the line:

    Please Login or Register  to view this content.
    Also was this code intended to switch on or off the input messages? Or does it 'toggle' them - i.e. the opposite of the state they are in now?

    Many thanks,

    James.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: Toggle Input Messages On and Off (Validated Cells)

    The code toggles.

    Removing the error trapping will cause the code to raise a debug warning.

    Can you post your non working workbook.

+ 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