You wanted code to choose a color, not assign it. How many options do you
intend to offer out of the 56 available, or will they be able to just
randomly select? You could set up a ListBox with the color name and let the
user choose from that. The the code behind the ListBox could tell which cell
to apply the selected value to.
Using an Inputbox would require the options to be spelled out somewhere,
possibley in the InputBox narrative, for the user to know what to enter in
the input window.
Give me some idea of how you want to handle the option criteria and I can
give you some code for it.
"JLGWhiz" wrote:
> With ActiveSheet.ActiveCell
> .Interior.ColorIndex = 5
> .Font.ColorIndex = 1
> End With
>
> "Steven" wrote:
>
> > What code do I use on a command button that will let the user choose a color
> > for interior and font.
> >
> > Thanks you,
> >
> > Steven
|