Hi Richard,
Ok I tried the demo code kike this following your suggestion,
Code:
Sub CheckOptionCheckCheckedCheck()
Dim v As Variant
Let v = ufResults.StatusBarNormal.Value
Let v = ufResults.OptionButton2.Value
Let v = ufResults.Refresh.Value
End Sub
That does not error.

. - I guess I should have twigged to that. I never stop telling OP’s to fully reference things like Workbooks and Worksheets thus:
WB.
And
Ws.
Etc....
Logical that the same applies to User Form things
UserForm.
And that explains why of course it worked within the User Form ( ufResults ) codes!
_..................
But in the demo code, ( which I have in a normal module ) it gives
False for
v
even if I check the Button
StatusBarNormal
I also put this line,
Dim v: v = ufResults.StatusBarNormal.Value
in the
Private Sub Worksheet_Change(ByVal Target As Range)
In Sheet 1 ,
then
put a stop on it,
then
checked Button
StatusBarNormal
then
initiated running of
Private Sub Worksheet_Change(ByVal Target As Range)
( by putting a number in any column C column where there is a Food in column A )
Then I Debug Mode F8 to go past
v
Then I hover to see what is in
v , and it is still
False, despite Button
StatusBarNormal
Being checked.
So I am not quite there yet....
I will keep at it
Thanks again for the reply
Alan
Bookmarks