I want to change the background color of each control as it receives focus to a custom color i have created, given the number 16775639. I thought I could do a Dim statement at the top of the form code page, and do an assignment such as:
Dim colSpecial as Integer
colSpecial = 16775639
However, whenever I do it, my intellisense stops working which generally is an indication of bad code. If i remove the colSpecial=16775639 it starts working again. So it accepts the Dim statement but not any assignement of value to that variable. I tried As Long, As Variant etc and received the same result. I even tried the assignement colSpecial = 5 when it was defined as an Integer -- same result.
Do I need to do something other than a Dim statement ...?
Dim colSpecial as Integer
colSpecial = 16775639
However, whenever I do it, my intellisense stops working which generally is an indication of bad code. If i remove the colSpecial=16775639 it starts working again. So it accepts the Dim statement but not any assignement of value to that variable. I tried As Long, As Variant etc and received the same result. I even tried the assignement colSpecial = 5 when it was defined as an Integer -- same result.
Do I need to do something other than a Dim statement ...?