data input format

j18k

New Member
Joined
Nov 18, 2005
Messages
4
Beforehand sorry if this has been answered before, but I'm going crazy with this:

On an user form I need a text box to show the numbers being input in the currency format, before the value is passed to a cell. (like the input mask in Access)

In my country prices are in millions, so I need the user to be able to see the thousands separators as data is being entered.

Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
no answers

Was my question too stupid, or no one knows the answer?

Any help will be appreciated
 
Upvote 0
There is no input mask in Excel.

You could simulate one using the various events (Change perhaps) of the textbox.

An easier method would be to set the value's format when you place it on the worksheet.

How are you currently getting the value pntp the spreadsheet?
 
Upvote 0
Th thing is I'm saving the input in a variable then latter I assign the value to a cell with .value(), so I wold like the imput field to be masked as $###,###.## so the user won't make a mistake by enetring 1000 instead of 10000
 
Upvote 0
Can you post the code you are using to put the value in the worksheet?
 
Upvote 0
Well it's just a regular tetxtbox named NCANT then:

Worksheets("SOURCE").Cells(LINEACOD, 24).Value = NCANT.Value()

The worksheet value is well formated, looks like $10'100.000,05.

The thing I need is for the user to see the dots and comas as he types the value in the text box, so that the above value wouldn't be misstyped as $1'010.000,05
:biggrin:
 
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,826
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top