Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
On my userform, I have a textbox (uf1vb1_OPS) that has code written to it when clicked by the user executes code which. I wish to mimic as a button.
By default, the shape's SPECIALEFFECT property is Raised (1- frmSpecialEffectRaised). When the user clicks the shape, I want the button to appear depressed with a green border ...
The text in the shape changes to grey, but there is no border let alone a green one.
Am I missing something?
By default, the shape's SPECIALEFFECT property is Raised (1- frmSpecialEffectRaised). When the user clicks the shape, I want the button to appear depressed with a green border ...
Code:
With uf1vb1_OPS
.ForeColor = RGB(160, 160, 160) 'grey
.SpecialEffect = frmSpecialEffectSunken
.BorderColor = RGB(0, 153, 0) 'green
End With
The text in the shape changes to grey, but there is no border let alone a green one.
Am I missing something?