PC Review


Reply
Thread Tools Rate Thread

Adding color swatch to the custom toolbar

 
 
Prasant
Guest
Posts: n/a
 
      17th Oct 2008
Hi Experts,
I want to create a toolbar with custom swatches. I created but I want to add
that particular swatch to the toolbar instead of macro name. I tried editing
the macro buttoon but the toolbar is not getting saved. May be I don't know
how to save the edited button toolbar. Can anyone tell the procedure to save
the edited toolbar? Or the procedure to add the color swatch image to the
created toolbar? Here is my script to create the custom swatch.
Sub Sec1_75()
With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoTrue
.Fill.ForeColor.RGB = RGB(64, 102, 178)
.Fill.Solid
End With
ActivePresentation.ExtraColors.Add RGB(Red:=64, Green:=102, Blue:=178)
ActiveWindow.Selection.ShapeRange.Line.Visible = msoFalse
End Sub

Many Thanks in advance for the suggestions.
______________
Regards
 
Reply With Quote
 
 
 
 
Prasant
Guest
Posts: n/a
 
      17th Oct 2008
Yes please. If it can be done in any way, I just want to try it so that I can
create my custom swatch toolbar avoiding to enter the values, as my palette
has many colors than to fit in the default palette.

I'm eagerly waiting for your response with the solution.

Thanks a ton.

___________________

"Steve Rindsberg" wrote:

> The script you've quoted will add colors to the recently used colors section of
> the fill popup ... it won't add colors to a custom toolbar.
>
> There are ways of adding colored buttons to a custom toolbar, but if they're on
> a custom toolbar, clicking them won't perform any function unless you write
> code to do it (ie, fill the currently selected shape or shapes).
>
> Do you want to go to that length?
>
>
>
> In article <FBB9323A-D6D2-4934-BD57-(E-Mail Removed)>, Prasant wrote:
> > Hi Experts,
> > I want to create a toolbar with custom swatches. I created but I want to add
> > that particular swatch to the toolbar instead of macro name. I tried editing
> > the macro buttoon but the toolbar is not getting saved. May be I don't know
> > how to save the edited button toolbar. Can anyone tell the procedure to save
> > the edited toolbar? Or the procedure to add the color swatch image to the
> > created toolbar? Here is my script to create the custom swatch.
> > Sub Sec1_75()
> > With ActiveWindow.Selection.ShapeRange
> > .Fill.Visible = msoTrue
> > .Fill.ForeColor.RGB = RGB(64, 102, 178)
> > .Fill.Solid
> > End With
> > ActivePresentation.ExtraColors.Add RGB(Red:=64, Green:=102, Blue:=178)
> > ActiveWindow.Selection.ShapeRange.Line.Visible = msoFalse
> > End Sub
> >
> > Many Thanks in advance for the suggestions.
> > ______________
> > Regards
> >

>
> -----------------------------------------
> Steve Rindsberg, PPT MVP
> PPT FAQ: www.pptfaq.com
> PPTools: www.pptools.com
> ================================================
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to make a Continous Form Color Swatch of all Hex colours efandango Microsoft Access Form Coding 6 12th Oct 2008 12:14 PM
Adding custom buttons to the Standard toolbar versus a custom toolbar cainrandom@gmail.com Microsoft Outlook Program Addins 2 9th Oct 2008 05:13 PM
Hot Shop Swatch Irony Lady Watches - Swatch Minimum Price yxs012@gmail.com Microsoft Outlook Calendar 0 5th May 2008 05:09 AM
custom color swatch add-in in Powerpoint ->2003 =?Utf-8?B?VG9tbXkgSG9sbSBIYW5zZW4=?= Microsoft Powerpoint 3 18th Jul 2007 08:48 AM
adding custom images to a button on custom toolbar Mousam Microsoft Excel Programming 1 13th Jul 2007 04:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:30 AM.