+ Reply to Thread
Results 1 to 3 of 3

Macros - Icon on a Ribbon

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Chicago, USA
    MS-Off Ver
    2010
    Posts
    12

    Macros - Icon on a Ribbon

    Using VB I recorded a Macro and I also created a customized Icon for this particular Macro on the home Tab.

    FYII: I protected the whole workbook with the macro to serve as template whoever needs to use the worksheet first need to resave it with different name.

    How can make the Icon of this Macro still works when I resave the worksheet in different name?

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Macros - Icon on a Ribbon

    If it is an Icon at the Top of the Ribbon (Which Is actually called the Quick Access Toolbar), I don't think it moves with the Workbook.. Its a part of the Application..
    Cheers!
    Deep Dave

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,966

    Re: Macros - Icon on a Ribbon

    You'll have to create the button using XML in the CustomUI.xml part. Any button you add to the ribbon using the UI is tied to a specific file path.
    Everyone who confuses correlation and causation ends up dead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Attach macros to top ribbon
    By miles44 in forum Excel General
    Replies: 1
    Last Post: 09-23-2015, 11:11 AM
  2. [SOLVED] Dynamic generation icon groups in ribbon 2007~
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2015, 10:34 AM
  3. Replies: 3
    Last Post: 03-25-2014, 11:05 AM
  4. Ribbon Icon Size
    By PPatrick in forum Excel General
    Replies: 1
    Last Post: 09-14-2012, 07:22 PM
  5. Customizing a ribbon with macros
    By DrNerj in forum Excel General
    Replies: 0
    Last Post: 08-15-2012, 10:15 AM
  6. Icon in Add-in menu XL2007 Ribbon
    By rwgrietveld in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2010, 07:19 PM
  7. Using Macros on ComboBox within the Ribbon
    By DougQval in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2009, 03:50 AM

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.6.0 RC 1