+ Reply to Thread
Results 1 to 7 of 7

Sharing Macros and Buttons Across Users

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    MINNESOTA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Sharing Macros and Buttons Across Users

    Good Morning -

    There are alot of different ways to share macros to other users. I am trying one technique out and running into issues.

    I have an excel file with macros built into it. I want to add a custom ribbon with buttons that trigger the macros. when I change the filename of the workbook, or if I want to run those macros in a different workbook, I get errors. So I've tried saving my macros into my PERSONAL.xlsb file and sharing that to other users. I've also used the export customization to export my custom ribbon. when I go to a users computer and upload the new PERSONAL.xlsb file and import the new customization, when I click the button it asks me to verify the security of the macro (giving me an enable and disable button). When I click enable, I get the error "excel cannot have two workbooks open with the same name." I can manually run the macros from the new PERSONAL.xlsb file by using the developer tab, and I can add new buttons, linking them to the PERSONAL.xlsb file and run them just fine, but the original buttons I put on the custom ribbon do not work. How can I fix this, or is there a better way to give macros and ribbons to all of my users?

    Thank you!
    Last edited by 6StringJazzer; 06-22-2022 at 02:22 PM. Reason: Moved from Excel General

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,717

    Re: Sharing Macros and Buttons Across Users

    All your users are already going to have a PERSONAL.xlsb file so you can't just give them yours, hence the error you got.

    The best way to do what you want to do is create an add-in with your macros and have your users install the add-in.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-18-2013
    Location
    MINNESOTA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Sharing Macros and Buttons Across Users

    Thanks for the response. I saved my file as an add in, then I created a custom ribbon and added macros and referenced back to the add in. Then I exported my custom ribbon. Then I went to another user and gave them the add in, and imported the custom ribbon. when I run one of the macros on the custom ribbon it says "Sorry, Excel cannot open two workbooks with the same name at the same time."

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,717

    Re: Sharing Macros and Buttons Across Users

    Does your custom ribbon still call macros in PERSONAL.xlsb? Because it needs to call macros in the add-in.

  5. #5
    Registered User
    Join Date
    02-18-2013
    Location
    MINNESOTA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Sharing Macros and Buttons Across Users

    It shouldn't. I took my excel sheet onto a new computer and deleted all custom ribbons and all macros from the workbook. Then I installed the add in and created a new custom ribbon that would only reference those macros from within the add in. Unless I did something wrong, I tried to start from more or less a blank slate. Is there a way to see where those macros are pulling from on the custom ribbon setup? From what I could tell there wasn't much of a way. Thanks

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,717

    Re: Sharing Macros and Buttons Across Users

    Right click on a ribbon icon, and select Customize the Ribbon.
    Find your custom command on the list on the right side and hover the cursor over it. You will get a tooltip with the pathname of the macro.

    show macro.jpg

  7. #7
    Registered User
    Join Date
    02-18-2013
    Location
    MINNESOTA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Sharing Macros and Buttons Across Users

    Ok thanks I think I have this working now. But i'm getting circular reference errors and they are related back to my add in file. how do I open the add in file to get rid of these?

+ 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. [SOLVED] Sharing with other users
    By CamiWami in forum Excel General
    Replies: 4
    Last Post: 05-19-2019, 06:28 PM
  2. [SOLVED] Sharing a workbook with users without Office
    By p3rlend in forum Excel General
    Replies: 2
    Last Post: 08-24-2016, 11:29 AM
  3. Sharing workbook with multiple users
    By Climaxgp in forum Excel General
    Replies: 1
    Last Post: 05-04-2011, 05:09 AM
  4. Sharing workbook among few users
    By Dhruva101 in forum Excel General
    Replies: 1
    Last Post: 08-24-2006, 06:25 PM
  5. Replies: 5
    Last Post: 11-17-2005, 06:20 PM
  6. [SOLVED] Sharing personal macros and buttons that accompany the macro
    By JDub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2005, 04:10 PM
  7. Replies: 1
    Last Post: 02-10-2005, 08:06 AM

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