I am using an Excel Form, and trying to make the user choose a color for a new tab they are creating. I am currently forcing an input box to pop up when the user adds a new worksheet. The user inputs a name and a new box will pop up asking the user to select a color.
I can get the color box to come up using
But I can not get the tab color to change to the color chosen...
Any suggestions to retrieve the information from the ColorPalette box?
I also know that this code:
Will change the selected "a" tab color to color "56" but I dont know how to retrieve a color from the color palette and insert it where the "56" is...
Any help retrieving color from palette?
Also, is there any othere version of a color palette, that I could show the user? and what would the vba code be for that?
I can get the color box to come up using
Code:
Application.Dialogs.Item(xlDialogColorPalette).Show ' -- 56 colors
Any suggestions to retrieve the information from the ColorPalette box?
I also know that this code:
Code:
Worksheets(a).Tab.ColorIndex = 56
Any help retrieving color from palette?
Also, is there any othere version of a color palette, that I could show the user? and what would the vba code be for that?