G
Gina
Hi all.
posted it already in modulescoding but pressed some button in OE and now the
'modulescoding ' does not seem to be active anymore...
sorry guys ..... I cannot find a way to get it 'bold' again ....
here's my problem ...
I would like to change the background when a control is locked
Running my code, I get is a message that an object is required !! ??
tried various ways but failed .... each time :-(
this is my code:
*****
Private Function Turn_Color(ctl As Control, OnOff As Boolean)
Dim obControlToSet As Object
Dim test
Set obControlToSet = ctl
test = obControlToSet.Name
If OnOff = False Then
test.BackColor = 16777215 ' here I get the message
Else
test.BackColor = 10040115 ' here I get the message
End If
obControlToSet = Nothing
End Function
***
Thanks,
Gina
posted it already in modulescoding but pressed some button in OE and now the
'modulescoding ' does not seem to be active anymore...
sorry guys ..... I cannot find a way to get it 'bold' again ....
here's my problem ...
I would like to change the background when a control is locked
Running my code, I get is a message that an object is required !! ??
tried various ways but failed .... each time :-(
this is my code:
*****
Private Function Turn_Color(ctl As Control, OnOff As Boolean)
Dim obControlToSet As Object
Dim test
Set obControlToSet = ctl
test = obControlToSet.Name
If OnOff = False Then
test.BackColor = 16777215 ' here I get the message
Else
test.BackColor = 10040115 ' here I get the message
End If
obControlToSet = Nothing
End Function
***
Thanks,
Gina