Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In my userform text boxes, I'm returning worksheet values of cells that are
custom formatted to 3 decimal places. I'm returning to separate text boxes in the userform, the 'high', 'low', and 'average' worksheet functions of the cells. How can I limit the text boxes to only show 3 decimal places? D.S. Donald |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the round method with the 'high', 'low', or 'average' as the first
argument, like: txtMyTextBox.Text = Round(dblHigh, 3) Bill Barclift "D.S." wrote in message ... In my userform text boxes, I'm returning worksheet values of cells that are custom formatted to 3 decimal places. I'm returning to separate text boxes in the userform, the 'high', 'low', and 'average' worksheet functions of the cells. How can I limit the text boxes to only show 3 decimal places? D.S. Donald |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bill! That was exactly what I was looking for. Works great.
D.S. Donald "Bill Barclift" wrote in message news:Jd3kb.14793$iq3.2438@okepread01... Use the round method with the 'high', 'low', or 'average' as the first argument, like: txtMyTextBox.Text = Round(dblHigh, 3) Bill Barclift "D.S." wrote in message ... In my userform text boxes, I'm returning worksheet values of cells that are custom formatted to 3 decimal places. I'm returning to separate text boxes in the userform, the 'high', 'low', and 'average' worksheet functions of the cells. How can I limit the text boxes to only show 3 decimal places? D.S. Donald |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bill! That was exactly what I was looking for, works great.
D.S. DonaldDonald "Bill Barclift" wrote in message news:Jd3kb.14793$iq3.2438@okepread01... Use the round method with the 'high', 'low', or 'average' as the first argument, like: txtMyTextBox.Text = Round(dblHigh, 3) Bill Barclift "D.S." wrote in message ... In my userform text boxes, I'm returning worksheet values of cells that are custom formatted to 3 decimal places. I'm returning to separate text boxes in the userform, the 'high', 'low', and 'average' worksheet functions of the cells. How can I limit the text boxes to only show 3 decimal places? D.S. Donald |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Limiting text length | Excel Discussion (Misc queries) | |||
Limiting text entries | Excel Discussion (Misc queries) | |||
limiting text entry of columns | Excel Discussion (Misc queries) | |||
limiting rows of text in a textbox object? | Excel Worksheet Functions | |||
Limiting physical length of text in a text box control | Excel Discussion (Misc queries) |