Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am tryin to caption a label from this textbox with no luck
Label1.Caption = (Round(TextBox1 / 0.03125, 0) * 0.03125) the the label has to be formated like this # ??/?? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
maybe:
Label1.Caption _ = Application.Text(Round(textbox1.value / 0.03125, 0) * 0.03125, "# ??/??") damorrison wrote: I am tryin to caption a label from this textbox with no luck Label1.Caption = (Round(TextBox1 / 0.03125, 0) * 0.03125) the the label has to be formated like this # ??/?? -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Dave,
I am getting a type mismatch error Label1.Caption _ = Application.Text(Round(textbox1.value / 0.03125, 0) * 0.03125, "# ??/??") |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm betting that what you have in textbox1 isn't a number (or doesn't look like
a number). if isnumeric(textbox1.value) then Label1.Caption _ = Application.Text(Round(textbox1.value / 0.03125, 0) * 0.03125, "# ??/??") else Label1.Caption = "not a number in textbox1" end if damorrison wrote: Hi Dave, I am getting a type mismatch error Label1.Caption _ = Application.Text(Round(textbox1.value / 0.03125, 0) * 0.03125, "# ??/??") -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks dave,
Yes the problem was, as soon as I hit the decimal the type mismatch error kicked in thanks alot |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() When entering into the textbox, is it possible to enter as fractions and decimals, when I enter as fractions it becomes a non-number |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Option Button to populate formula | Excel Discussion (Misc queries) | |||
Help! Formula that can Ref. hidden data & Populate Cells with desired text | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Data Label Value in Formula? | Charts and Charting in Excel | |||
Formula looks like a label | Excel Worksheet Functions |