Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following:
Private Sub tbAnnualInterest_Exit(ByVal Cancel As msforms.ReturnBoolean) tbAnnualInterest = Format(tbAnnualInterest / 100, "0.0000%") End Sub which works fine the first time a value (a percentage entered as 4.9 vs. .049) is entered into the textbox. However, if the textbox is entered and exited without entering a new value, I get a Type mismatch error. I've tried using various combinations of Val and/or CStr and anything else I thought might be useful. Any suggestions, as always, are greatly appreciated. TIA Mike |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Private Textbox Exit Sub question... | Excel Worksheet Functions | |||
How To Get An Event To Run When I Exit A TextBox | Excel Programming | |||
If a called sub exit, how to the caller exit right away? | Excel Programming | |||
Format Textbox as % | Excel Programming | |||
MSForms.TextBox Exit event isn't available in Excel class mosule | Excel Programming |