VBA Source Code Management (SCM)

Started by paulv45, March 14, 2012, 02:43:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nikolay

Just set in the project settings to start Visio you have.
I.e. in the project settings, select "Start External Program", and enter path to Visio (see screenshot)

BTW, there is a compiled version, i.e. you need to build it from source only if you want to  ;)

Thomas Winkel

Thanks, that worked.

I know, but for me it is very interesting to see something similar in .NET what I have done in VBA before.
We only have VBA in our project, and I always wanted to introduce myself in Visio AddIn development.
Maybe such a "TortoiseSVN pre-commit hook" is a good beginners project in .NET development...
http://www.codeproject.com/Articles/528302/TortoiseSVN-pre-commit-hook-in-Csharp-Save-yoursel

Of course I will report here if I really do it.

Thomas Winkel

#17
Here we go:
https://github.com/ThomasWinkel/TortoiseStartCommitHookVisioExportVBA

This so called "start-commit hook" automatically exports all VBA modules from all Visio files in your local checkout to a specified directory before commit.

This hook only works with TortoiseSVN and not with standalone SVN.

TODO:
* [Done] Only process files with uncommitted changes
* [Done] Do not export empty VBA projects
* [Rejected] Do not export binary files (.frx)
* Also delete export when Visio file is deleted

In fact this is only a copy & paste combination of Nikolays code with the above linked pro-commit-hook example.

For setup see attached screenshot.

Edit: Update TODO list