Consulting

Results 1 to 7 of 7

Thread: Detect changes to VBA code.

  1. #1

    Detect changes to VBA code.

    Excel VBA (2000 and above)
    Is there a way of testing (in Workbook_BeforeClose for example) if there have been any changes to the VBA code this session. I know how to detect for changes (ActiveWorkbook.Saved), but I want to be able to know if the code has changed, so I can automate my change log.

    Thanks in advance.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Don't think so. You could protect the code so that they can't change it, unless they hack it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    The code is well and truly protected - I just want to automate tracking my own changes to the code.

    I'll come up with another solution instead.

  4. #4
    Anyone else with any ideas?

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by myredroom
    The code is well and truly protected - I just want to automate tracking my own changes to the code.

    I'll come up with another solution instead.
    Then use a code management solution.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    Quote Originally Posted by xld
    Then use a code management solution.


    Such as?

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Such as Subversion.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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