Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,074
- Office Version
- 2019
- Platform
- Windows
I'm getting a Type Mismatch error on Price = lbP11.Caption that I can not seem to resolve. lbP11 is a label that resides on a Userform. The caption is 144.17%. If the caption is $2,768.86, no error occurs. What am I am i missing or doing wrong.
thanks for your guidance.
thanks for your guidance.
VBA Code:
Private Sub lbN11_Click()
Dim Symbol As String
Dim Price As Double
If lbN11 = "" Then Exit Sub
Symbol = lbN11.Caption
Price = lbP11.Caption
FindBestWorst Symbol, Price
End Sub