Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default display $ in a userform textbox

Hi All, I have a userform in excel that accepts amount values.. My Question is:
Is there a way I can display a '$' Sign in text box accepting amount values?

Thanks in Advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default display $ in a userform textbox

format the data

amount = 10.23
textbox1.value = format(amount,'"$")


"sam" wrote:

Hi All, I have a userform in excel that accepts amount values.. My Question is:
Is there a way I can display a '$' Sign in text box accepting amount values?

Thanks in Advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default display $ in a userform textbox

Sould of been

amount = 10.23
texbox1.value = Format(amount, "$#.00")

"sam" wrote:

Hi All, I have a userform in excel that accepts amount values.. My Question is:
Is there a way I can display a '$' Sign in text box accepting amount values?

Thanks in Advance

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
Userform Textbox to Worksheet Textbox targante Excel Programming 1 May 2nd 09 12:26 AM
fill userform textbox from userform listbox clik event GregJG[_21_] Excel Programming 3 December 7th 08 04:47 PM
How to feed a userform a variable to display in a textbox? Chet Excel Programming 2 February 1st 08 02:46 PM
Qn: Display Text in TextBox in Userform Michael Vaughan Excel Programming 1 August 18th 04 05:06 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 07:16 PM.

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"