Show color picker for user to choose from in VBA powerpoint
问题 I am working on an add-in for powerpoint where I need the use to supply a given color - preferably in RGB terms. Is there a way in VBA to display the colorpicker? 回答1: In Excel getting the palette colors is easy. This changes the background of the cells in worksheet 1, as per the selected color from the palette: Sub TestMe() Dim rgbSet As Variant: rgbSet = Application.Dialogs(xlDialogEditColor).Show(1) If rgbSet Then Worksheets(1).Cells.Interior.Color = ThisWorkbook.Colors(1) End Sub In