WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Decimal places in Textbox entry

 
   Home -> Office -> User Forms RSS
Next:  User Forms: Unable to automate changes in Header/Footer?  
Author Message
user

External


Since: Nov 19, 2006
Posts: 9



(Msg. 1) Posted: Sun Jul 13, 2008 12:13 pm
Post subject: Decimal places in Textbox entry Add to elertz
Archived from groups: microsoft>public>word>vba>userforms (more info?)

Hi
Please can you help with a problem I have with a textbox entry on a
userform.
I need the final entry in a text box to display 2 decimal places, even if
there are no decimal quantities. i.e. if user inputs 50, the text box shows
it as 50.00.
Is this possible and if so, how

(Windows XP with office 2000 SR-1 standard)

TIA

--
Al@n
Back to top
Login to vote
Gregory K. Maxey

External


Since: Apr 01, 2008
Posts: 19



(Msg. 2) Posted: Sun Jul 13, 2008 12:13 pm
Post subject: Re: Decimal places in Textbox entry Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can use the text box on exit event:

Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If IsNumeric(Me.TextBox1.Value) Then
Me.TextBox1.Value = Format(Me.TextBox1.Value, "0.00")
End If
End Sub




Al@n wrote:
> Hi
> Please can you help with a problem I have with a textbox entry on a
> userform.
> I need the final entry in a text box to display 2 decimal places,
> even if there are no decimal quantities. i.e. if user inputs 50, the
> text box shows it as 50.00.
> Is this possible and if so, how
>
> (Windows XP with office 2000 SR-1 standard)
>
> TIA
Back to top
Login to vote
user

External


Since: Nov 19, 2006
Posts: 9



(Msg. 3) Posted: Sun Jul 13, 2008 9:28 pm
Post subject: Re: Decimal places in Textbox entry Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Greg

Thanks Very Much

Alan
"Gregory K. Maxey" <gmaxey.TakeThisOut@mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote in
message news:eu227rP5IHA.784@TK2MSFTNGP04.phx.gbl...
> You can use the text box on exit event:
>
> Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
> If IsNumeric(Me.TextBox1.Value) Then
> Me.TextBox1.Value = Format(Me.TextBox1.Value, "0.00")
> End If
> End Sub
>
>
>
>
> Al@n wrote:
>> Hi
>> Please can you help with a problem I have with a textbox entry on a
>> userform.
>> I need the final entry in a text box to display 2 decimal places,
>> even if there are no decimal quantities. i.e. if user inputs 50, the
>> text box shows it as 50.00.
>> Is this possible and if so, how
>>
>> (Windows XP with office 2000 SR-1 standard)
>>
>> TIA
>
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> User Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET