+ Reply to Thread
Results 1 to 8 of 8

how to change the text of the button, accordingly to a cell that reads 'true'/'false'

  1. #1
    Registered User
    Join Date
    06-14-2007
    Posts
    25

    how to change the text of the button, accordingly to a cell that reads 'true'/'false'

    okie. am creating this form which requires someone to key in name and figures. to prevent people from keying in alphabets as figures, i used the "isnumber" function to allow the cell to read "true/false"

    what i like to have is that:

    when the cell reads "false", the button will read as "ERROR" and is unclickable
    when the cell reads "true", the button will read "OK" and is clickable, meaning the data will be written.

    am a noob in this, kindly pls help in layman terms! really appreciate a lot!!

  2. #2
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    Try this, just change the cell that has the ISNUMBER function in and the button name to your button name and the macro name to the action you want to happen when you click it.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-14-2007
    Posts
    25
    jonn! thanks for the prompt reply.

    i dont really understand ur instructions before the codes. could u use layman terms and tell me what to click and which button to press, am a noob here....

  4. #4
    Registered User
    Join Date
    06-14-2007
    Posts
    25
    how do u know the name of the button? really appreciate that u could help

  5. #5
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    Change this line where it say "A1" to the cell where you ISNUMBER function is

    Please Login or Register  to view this content.
    Change this line where it says "BUTTON1" to the button name of the button you want to change
    Please Login or Register  to view this content.
    your'll need to change both lines which have the "BUTTON1" in

    The Finanlly change this line to the macro name you want to run
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    [/QUOTE]

  6. #6
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    right click on the button and it name will apear in the top left of the sheet

  7. #7
    Registered User
    Join Date
    06-14-2007
    Posts
    25
    cant work...can anyone help? anyone?

  8. #8
    Forum Contributor
    Join Date
    11-17-2006
    Posts
    152
    whats not working about it?

+ 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