Hi all.
I have a user form with two buttons for a selection by the user. It is either the one or the other. You can not select both.
If you select Mobile then the word "Mobile" is to be in cell M1. If you select In Shop then the text "In Shop" is to appear in cell M1. If no button is selected then M1 is to be blank ("")
I'm not familiar with the select case statements and this one below is not working as I want it to. Are there anyone out there to help me. I will appreciate it.
I have a user form with two buttons for a selection by the user. It is either the one or the other. You can not select both.
If you select Mobile then the word "Mobile" is to be in cell M1. If you select In Shop then the text "In Shop" is to appear in cell M1. If no button is selected then M1 is to be blank ("")
I'm not familiar with the select case statements and this one below is not working as I want it to. Are there anyone out there to help me. I will appreciate it.
Code:
Select Case Where
Case Me.btInShop.Value = True And Me.btMobile.Value = True
Range("M1").Value = ""
Case Me.btInShop.Value = False
Range("M1").Value = "In Shop"
Case Me.btMobile.Value = False
Range("M1").Value = Mobile
End Select