Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Integer only textbox?

Can I set a textbox (on a form) to accept only integer values? If so
how?
TIA

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Integer only textbox?

Create an _AfterUpdate() routine for your text box and then check if
its an integer in your code.



wrote:
Can I set a textbox (on a form) to accept only integer values? If so
how?
TIA


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Integer only textbox?

Okay, I was afraid it wouldn't be as simple as a property value.

Thank you.
ImpulseBlue wrote:
Create an _AfterUpdate() routine for your text box and then check if
its an integer in your code.



wrote:
Can I set a textbox (on a form) to accept only integer values? If so
how?
TIA


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Integer only textbox?

If the tool must use a userform then you are stuck with setting up
events for it, but if you had the input in a cell on a worksheet then
you could use simple Data Validation and set it to only whole
numbers.... just some thoughts


wrote:
Okay, I was afraid it wouldn't be as simple as a property value.

Thank you.
ImpulseBlue wrote:
Create an _AfterUpdate() routine for your text box and then check if
its an integer in your code.



wrote:
Can I set a textbox (on a form) to accept only integer values? If so
how?
TIA


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add an integer to an existing integer? Aaron Excel Worksheet Functions 3 December 17th 09 09:46 PM
Highlight all Text in a Textbox when the textbox is selected RPIJG[_73_] Excel Programming 3 October 28th 05 08:28 PM
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys Minitman[_4_] Excel Programming 0 February 22nd 05 08:50 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:47 PM
Textbox Bug? Missing/delayed update of textbox filled via VBA MarcM Excel Programming 0 November 4th 04 05:43 PM


All times are GMT +1. The time now is 01:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"