+ Reply to Thread
Results 1 to 5 of 5

Sharing Macros in Excel 2007

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Sharing Macros in Excel 2007

    Hi there,

    I am very new to Excel 2007 and I am wondering whether there is a way of sharing macros that I have created on my computer with other people? Does anyone know if it would be possible to send someone else a macro as a file and install it on their machine or perhaps run a script so that they can enable it as an add-in? Ideally, I would like to find a way of installing a button on their toolbar automatically with my macro linked to it. Is there any way of doing this?

    Best regards,

    Daniel

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Sharing Macros in Excel 2007

    Below code will copy module from one workbook.

    HTML Code: 

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Sharing Macros in Excel 2007

    Hi, Daniel,

    due to the security system from Office2007 on I doubt you will be able to activate an addin via another workbook or copy the module to a different workbook like suggested by Sadath31. And in 2007 you wonŽt be able to create a button except on Add-Ins which to my opinion is not a good place (the last place I would look for it).

    To create your own tab on a ribbon you need to do so in XML (outside of Excel most of the time), create the callbacks and then fill them in VBA (you may use the Custom Editor available form MS or Andy PopeŽs AddIn or any editor and very good knowledge of XML to do so).

    IŽd prefer to create an AddIn with all the code wanted and a neat tab for especially these macros and make it available to the persons. I would enclose a detailed description on which actions to take to add it to the Add-Ins-Collection but leave it to these persons to do so if they want the AddIn to be used.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Registered User
    Join Date
    10-05-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sharing Macros in Excel 2007

    Hi guys,

    Thank you so much for your useful feedback and suggestions, this is very much appreciated. Holger, I didn't realise that Excel 2007 had security limitations like that, it is good to know. I like the idea that you had about creating an AddIn using the desired code and making it available to others. I have made a simple macro and would like to learn how to create an AddIn as this is something that I have never done before. Do you have any advice as to the steps of converting a saved macro into an AddIn and making this available to others?

    Many thanks,

    Daniel

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Sharing Macros in Excel 2007

    Hi, Daniel,

    although the description was made for Excel up to 2003 I think Creating An XLA Add-In For Excel gives you the basic impression on how to write the Addin (okay, the newer versions store as a different file format).

    To find out about programming of the ribbon IŽd recommend the use of Andy PopeŽs RibbonX Visual Designer 2010 which makes it a lot easier then to use the Custom Editor or Notepad to program your own tab for the ribbon.

    HTH,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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