Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My code is:
Dim strDate2 As String TextBox1 = Val("_" & Format(Second(Time), "00")) I have attempted to populate Textbox1 with workbook, on open and with form, initialize. All I get is 0 or the literal string Also, as soon as the connection opens I want to close the form. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The underbar character is interfering with the Val function's ability to
show the number (because it is not a number and Val stops evaluating numbers at the first non-digit that is not a US decimal point). Why are you even using the Val function? Just do this... TextBox1 = Format(Second(Time), "_00") -- Rick (MVP - Excel) "wynnyderpooh" wrote in message ... My code is: Dim strDate2 As String TextBox1 = Val("_" & Format(Second(Time), "00")) I have attempted to populate Textbox1 with workbook, on open and with form, initialize. All I get is 0 or the literal string Also, as soon as the connection opens I want to close the form. Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Rick,
I changed the textbox to a label. I need the label to display an active timer. I am attempting to use the code: lblTmr = Format(Second(Time), "00") Application.Wait TimeValue("00:00:01") this is locking up lblTmr = lblTmr + TimeValue("00:00:01") this is not working Suggestions? Thanks again, Jim "Rick Rothstein" wrote: The underbar character is interfering with the Val function's ability to show the number (because it is not a number and Val stops evaluating numbers at the first non-digit that is not a US decimal point). Why are you even using the Val function? Just do this... TextBox1 = Format(Second(Time), "_00") -- Rick (MVP - Excel) "wynnyderpooh" wrote in message ... My code is: Dim strDate2 As String TextBox1 = Val("_" & Format(Second(Time), "00")) I have attempted to populate Textbox1 with workbook, on open and with form, initialize. All I get is 0 or the literal string Also, as soon as the connection opens I want to close the form. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File opens, worksheet does not display | Excel Discussion (Misc queries) | |||
XL file opens but does not display | Excel Discussion (Misc queries) | |||
how do I display a automatically message when excel opens? | Excel Discussion (Misc queries) | |||
Display a countdown timer | Excel Worksheet Functions | |||
Excel ADO connection opens read-only instance of opened Excel | Excel Programming |