Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Seymour, Connecticut, USA
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom Tool Bar Button (Excel 97)

    Is there a way to change to color of the font and/or the background color of a custom tool bar button? I use text rather than a symbol for the button. I tried to use the edit button feature in customize but it didn't work. Can it be done in VBA?

    Thanks in advance

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Custom Tool Bar Button (Excel 97)

    If the button face is completely custom, see <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=xl&Number=89588>this thread</A>. If you want text, you can specify the buttonface as text via

    With Application.CommandBars(index).Controls.Add(Type, ID, before, parameter, temporary)
    .Caption = "My Text"
    .Style = msButtonCaption
    End With

    There is a huge selection of built in button faces beyond the few you see in the Macro Button assignment dialog, see <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=xl&Number=61414>this post from Brooke</A>, and some of the ensuing discussion in the same thread.
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •