+ Reply to Thread
Results 1 to 16 of 16

Are Excel Macros GitHub Friendly

  1. #1
    Registered User
    Join Date
    02-17-2022
    Location
    Malta
    MS-Off Ver
    2016
    Posts
    6

    Exclamation Are Excel Macros GitHub Friendly

    Cross-posted at https://www.mrexcel.com/board/thread...ithub.1199607/

    Hi,

    I've developed a first version of an ETL (Extract, Transform, Load) tool called ETransL. I would like to keep working on it adding new features and functions. It is on Github.

    ETransL-003.PNG.

    The question I have is whether Excel macros embedded in an Excel Workbook are amenable to work with GitHub?

    With Github, code reviews are possible. It this possible with VBA code?

    If there is a workaround I would prefer to address it early on in the shared project's stage.

    Thanks.
    Last edited by 6StringJazzer; 03-20-2022 at 04:55 PM.

  2. #2
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Are Excel Macros GitHub Friendly

    I tried version control years ago. I used a tool called CodeCleaner to export the VBA code and forms. I didn't use Github but it was something similar. The VBA code worked for version control but the forms changed every time you exported it. I see there has been a lot of work to improve this. Check out

    xltrail[dot]com/blog/auto-export-vba-commit-hook

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

    Re: Are Excel Macros GitHub Friendly

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    Because you are a new member I have added the link for you. But as a new member the next thing you should do is review our rules. There aren't many, and they are all important.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Are Excel Macros GitHub Friendly

    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Registered User
    Join Date
    02-17-2022
    Location
    Malta
    MS-Off Ver
    2016
    Posts
    6

    Re: Are Excel Macros GitHub Friendly

    Sorry guys.

    I'm quite new to the Excel Forums ecosystem and am trying to find one I would like to call my main reference.

    PS: this message will be cross posted to the other two fora.

  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,721

    Re: Are Excel Macros GitHub Friendly

    Quote Originally Posted by acb7865 View Post
    I'm quite new to the Excel Forums ecosystem
    Completely understandable but the first thing to do when joining any forum is to read the rules. Most other forums have rules similar to ours.
    PS: this message will be cross posted to the other two fora.
    When that happens please post the links here. We do have some restrictions on who can post hot links so if you have any trouble, PM me and I'll post them for you.

  7. #7
    Registered User
    Join Date
    02-17-2022
    Location
    Malta
    MS-Off Ver
    2016
    Posts
    6

    Re: Are Excel Macros GitHub Friendly

    Quote Originally Posted by mogul View Post
    I tried version control years ago. I used a tool called CodeCleaner to export the VBA code and forms. I didn't use Github but it was something similar. The VBA code worked for version control but the forms changed every time you exported it. I see there has been a lot of work to improve this. Check out

    xltrail[dot]com/blog/auto-export-vba-commit-hook
    Thanks for the lead.

    I'm not sure it addresses the need of having a group of developers operating around GitHub to move the utility forward. For example today the tool lacks center padding and a person decides to implement it. My understanding is that everyone needs to fork out Euro 35 per month for xtrail. I don't think that is going to work.

    In the initial stages of this project I was thinking of going the python route as I had done with a similar topic related to the SEPA payment system but opted to go with Excel macros because many companies (esp multinationals) prohibit the use of any software other than MS products.

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

    Re: Are Excel Macros GitHub Friendly

    I have limited experience with GitHub but I've used lots of CM tools. You could check in the Excel file but then it would be one unit, and you could not track version changes to individual modules. I don't know if GitHub supports change tracking to show what changed between versions, but it probably wouldn't work for that method either.

  9. #9
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Are Excel Macros GitHub Friendly

    The question is, will you even be able to upload VBA to GitHub in the coming months? Microsoft's next Office Update eliminates the ability to run macros that were downloaded from the internet, only Macros created on your local machine will be able to run, unless the macro has previously been run on that machine prior to the update.

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

    Re: Are Excel Macros GitHub Friendly

    Quote Originally Posted by PrizeGotti View Post
    Microsoft's next Office Update eliminates the ability to run macros that were downloaded from the internet, only Macros created on your local machine will be able to run, unless the macro has previously been run on that machine prior to the update.
    Do you have a cite for that?

  11. #11
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Are Excel Macros GitHub Friendly


  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Are Excel Macros GitHub Friendly

    I don't think it prevents you from running them, it's just an extra level of security to ensure you don't run something by mistake.

  13. #13
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Are Excel Macros GitHub Friendly

    It will stop them completely unless you follow a procedure to allow it, and it looks like any exemptions will have to be done manually for every downloaded macro.

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Are Excel Macros GitHub Friendly

    It will stop them completely unless you follow a procedure to allow it
    Which is basically what I said, another level of security.

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

    Re: Are Excel Macros GitHub Friendly

    Quote Originally Posted by PrizeGotti View Post
    ...eliminates the ability to run macros that were downloaded from the internet, only Macros created on your local machine will be able to run, unless the macro has previously been run on that machine prior to the update.
    That overstates the case. It does not eliminate the ability and you will still be able to run any macro that you explicitly authorize to run.

  16. #16
    Registered User
    Join Date
    06-07-2018
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Are Excel Macros GitHub Friendly

    You might also check out the RubberDuckVBA IDE-Addin. My understanding is that from v2, it had IDE-Integrated Git Source Control.

+ 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. VBA - MSXML2.XMLHTTP - Pass CREDENTIALS on GITHUB
    By Exequiel3k in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2020, 09:50 AM
  2. Convert .txt to Excel or Access table friendly data
    By Juolupuki in forum Excel General
    Replies: 0
    Last Post: 03-26-2018, 05:52 AM
  3. Replies: 28
    Last Post: 05-31-2012, 02:37 PM
  4. Friendly Names for Hyperlink Formula Macros
    By Rhettoric101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2011, 03:49 PM
  5. top of class, user friendly, Excel applications
    By lalbatros in forum Excel General
    Replies: 1
    Last Post: 08-23-2007, 10:46 AM
  6. Isn't Excel RGB friendly?
    By Allu in forum Excel General
    Replies: 5
    Last Post: 11-06-2006, 07:46 AM
  7. How to initiate macros in user-friendly fashion
    By Grace in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-12-2005, 04:06 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