+ Reply to Thread
Results 1 to 3 of 3

how to prevent user from clicking a button on error

  1. #1
    Registered User
    Join Date
    05-11-2007
    Posts
    93

    Question how to prevent user from clicking a button on error

    Hi all,

    I have the following code

    Please Login or Register  to view this content.

    In this code i am checking if the user types any special characters in name.
    If so then on selection change i ll show a msgbox and select that cell again for the user to correct.

    But the problem is the user can click on a button in my excel and go to the next tab,

    How can i prevent him from clicking the button in this case?

    Please help me with this...

    Thank you,
    Glen

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Glen

    Would making it a change event instead of a selectionchange event beat the problem? Just a thought and not tested at all....


    rylo

  3. #3
    Registered User
    Join Date
    05-11-2007
    Posts
    93
    Thank you Rylo .

    I tried to do the check on click of the Button . so when user clicked the button , i call a function and did the check on all the rows if any names have special characters .

    This works now

    Thank you.

+ 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