+ Reply to Thread
Results 1 to 5 of 5

Userform number validation - multitabbed form

  1. #1
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Userform number validation - multitabbed form

    Hi,
    I use some validation for ensuring that certain fields are entered as numeric only in certain text boxes on my userforms:

    Please Login or Register  to view this content.
    It works fine on a single page form but just fails where a form has more than one page - specifically on the first if statement, as it doesn't seem to pick up the activecontrol as a textbox.

    Is there something extra I need to add for a multipage userform?

    Attached is an example with both form types to illustrate - just launch either form and type a non numeric value in.

    Cheers.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Userform number validation - multitabbed form

    Sorted!

    Please Login or Register  to view this content.
    needs to be
    Please Login or Register  to view this content.
    Spent most of yesterday wondering why it had stopped working and then within minutes of posting here, I figure it out!

  3. #3
    Registered User
    Join Date
    08-15-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Userform number validation - multitabbed form

    Quote Originally Posted by BuZZarD73 View Post
    Sorted!

    Please Login or Register  to view this content.
    needs to be
    Please Login or Register  to view this content.
    Spent most of yesterday wondering why it had stopped working and then within minutes of posting here, I figure it out!
    Above also not work!

    You solve your problem?

  4. #4
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Userform number validation - multitabbed form

    It's working fine for me.

    Please Login or Register  to view this content.
    remember to specify which page of the userform you want to run the code on by changing the value of
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    etc

  5. #5
    Registered User
    Join Date
    08-15-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Userform number validation - multitabbed form

    You are right

+ 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. code to create unique alphanumeric form number every time form is opened
    By Ishwarind in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2014, 06:16 AM
  2. Creating a form in Excel that auto generates a form number
    By nscaife in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 05:53 PM
  3. Invoice Generation From Multitabbed Spreadsheet
    By russoakford in forum Excel General
    Replies: 2
    Last Post: 08-20-2010, 07:50 AM
  4. [SOLVED] how can I make a form number change everytime the form is opened
    By babydumplingspita in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-10-2005, 03:05 PM
  5. [SOLVED] Activating userform and filling it with data form row where userform is activate
    By Marthijn Beusekom via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2005, 01:06 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