I understand that by default a User Form TextBox will populate cells in a worksheet in text format. I appreciate information in textboxes can be formatted in various numeric and currency formats. I need for information to be added to a database which will allow for the values to be recognised by Conditional Formatting in the destination cells.
I have used the following to format the details but this does not meet Conditional Formatting conditions.
I believe that using CDbl formatting might assist.
Is this a possible solution or will this still fail?
If it is possible, should thbe code be active at the time the textbox is populated (as above) or if it should happen in the command button module?
If it is possible, please could someone assist with the code I need to convert the keyed information to a suitable format.
I really must look to undertake an Intermediate / advanced VBA course
Many thanks
I have used the following to format the details but this does not meet Conditional Formatting conditions.
VBA Code:
Private Sub txtMorning_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Me.txtMorning = Format(Me.txtMorning, "#,##0.0")
End Sub
I believe that using CDbl formatting might assist.
Is this a possible solution or will this still fail?
If it is possible, should thbe code be active at the time the textbox is populated (as above) or if it should happen in the command button module?
If it is possible, please could someone assist with the code I need to convert the keyed information to a suitable format.
I really must look to undertake an Intermediate / advanced VBA course
Many thanks