colour of a command button

F

freelancer

I would like to change the colour of the command buttons on a form but, and I
could be wrong here, I can’t see a way of doing it via the button properties
–- please advise me if I am missing something! Alternatively, is there a VBA
code to accommodate this?

All responses gratefully appreciated
 
F

fredg

I would like to change the colour of the command buttons on a form but, and I
could be wrong here, I can¡¦t see a way of doing it via the button properties
¡V- please advise me if I am missing something! Alternatively, is there a VBA
code to accommodate this?

All responses gratefully appreciated

In addition to what Stephen Lebans has at www.lebans.com, you don't
have to use a command button.
An unattached label has events, i.e. click, double-click, etc., so
you can use a label, colored however you wish.
Using the MouseDown and MouseUp events you can set the label's
SpecialEffects property to emulate the raised and depressed appearance
of a command button.

MouseDown
Me.LabelName.SpecialEffects = 2

MouseUp
Me.LabelName.SpecialEffets = 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top