Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to preserve the number format that is in a userform text box
to be the same as the formatting in the sheet source cell For example 85% in the sheet (percent format) reads 0.85 in the text box that reads from that cell Can anyone help? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can always assign the Text property of the range to the TextBox...
TextBox1.Value = Range("A1").Text -- Rick (MVP - Excel) "Roger on Excel" wrote in message ... Is there a way to preserve the number format that is in a userform text box to be the same as the formatting in the sheet source cell For example 85% in the sheet (percent format) reads 0.85 in the text box that reads from that cell Can anyone help? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Set rng = Range("A1") TextBox1 = Format(rng,rng.NumberFormat) If this post helps click Yes --------------- Jacob Skaria "Roger on Excel" wrote: Is there a way to preserve the number format that is in a userform text box to be the same as the formatting in the sheet source cell For example 85% in the sheet (percent format) reads 0.85 in the text box that reads from that cell Can anyone help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format TextBox on UserForm | Excel Programming | |||
Number format of textbox in userform | Excel Programming | |||
format textbox in userform | Excel Programming | |||
Format of a TextBox in a userform | Excel Programming | |||
Qn: Date Format in TextBox in UserForm? | Excel Programming |