+ Reply to Thread
Results 1 to 4 of 4

Thread: Add a button to top panel

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    HK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Add a button to top panel

    Hi,

    My company uses a special set of colors. We have an addin that is a button in the top panel that is always there when you open excel (more precisely, it is a menu like "Insert" called "Company Addins" with a button on to format charts) that can autoformat a chart (line colors etc) - you click on chart, click on button, voila, done.

    The set of colors was recently changed, but the addin hasn't been, and it is nowhere in sight, so i created my own. I have written the needed macro (called "ChartFormat"), saved it as an addin, so whenever i start excel i can make a form control and attach ChartFormat to it, hit the button and voila, done.

    But how do i do like the existing one, ie create a top menu and have a button so i don't always need to make a form control button and attach my macro to that? Any solution would work, just as long as i can click a button that is always visible (or a button in a menu that is always visible) that enables you to click the chart, click the button and have chart formatted?

    i use excel 2007. a further complication is that i likely cannot add anything to a launcher as my excel is again a company specific version that adds some extra functions...
    Last edited by cstassen; 02-03-2012 at 04:40 AM.

  2. #2
    Valued Forum Contributor JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    Japan
    MS-Off Ver
    Excel 2010
    Posts
    779

    Re: Add a button to top panel

    Go to the option menu and select customize ribbon> and add what ever you want to the ribbon.
    If you are happy with the answer, please click the Star icon in the below left hand corner.

    Good sites to start learning.

    snb's VBA Help Files
    Jerry Beaucaires Excel Assistant
    J & R Excel Consultancy Services

    How to post code correctly: Correct Code Posting

  3. #3
    Registered User
    Join Date
    02-03-2012
    Location
    HK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Add a button to top panel

    wow, had no idea u could add macros to ribbon as well, worked like a charm, thanks

  4. #4
    Valued Forum Contributor JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    Japan
    MS-Off Ver
    Excel 2010
    Posts
    779

    Re: Add a button to top panel

    No worries, if this problem is solved please mark the thread solved by going to advanced edit.

    Thanks
    If you are happy with the answer, please click the Star icon in the below left hand corner.

    Good sites to start learning.

    snb's VBA Help Files
    Jerry Beaucaires Excel Assistant
    J & R Excel Consultancy Services

    How to post code correctly: Correct Code Posting

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0