|
|
Comments and Discussions
|
|
 |

|
Roland,
I'm having trouble getting sourcetools.xla to version workbooks, specifically "ThisWorkbook.xwk". Is this feature supported or am I doing something wrong?
Also, given the fact that this is a tool for version controlling some code, how about releasing the code into an online SVN repository so that we can all contribute and improve it (how is OTSVN coming along?)
M
|
|
|
|

|
Anyone played around with multiple add-ins? I have three add-ins that I would like to control separately. As the .xla files are all in the same folder, this does not seem to be possible. Anyone found this problem, or a work around?
Thanks,
Steve
|
|
|
|

|
I am an experienced user of this tool in excel 2003. I have upgraded to excel 2010 64-bit and am trying to get this to work in the new version. This is on Windows 7 64-bit.
The first thing it complains on compile about the Private Declare Function lines, it made me change them to Private Declare PtrSafe Function. I made the change, and it compiles now.
When I open a excel project and enter VBA, I see the menu as expected. However, when I press the buttons nothing happens. My guess is that the hooks are not working properly.
I can run the code manually to save or commit and it seems to work okay, just not the buttons.
Any ideas on how to update this to work with 64-bit 2010?
|
|
|
|

|
I am using 2010 with Win 7 x64 and I have no problems. Did not need to change anything, so I think it maybe your machine, not the tool.
|
|
|
|

|
Are you running .xls or .xlsm ?
I get this message when I open excel with SourceTools.xla in place.
Compile error:
The code in this project must be updated for use on 64-bit systems.
Please review and update Declare statements and then mark them with
the PtrSafe attribute.
If I make the changes then I can run the macros manually, but the buttons don't work.
modified on Monday, May 9, 2011 4:50 PM
|
|
|
|

|
Hi,
That add-in works very well for me when using it only in my PC.
I've tried to make it to work in two (or more) machines. So, when I change only one Form (on Machine 1), I have to commit all others FRX files (I have almost 150 Forms). So far so good. When I perform an Update on Machine 2 I get conflicts with all FRX files. Since then, I need to open Windows Explorer and to solve the conflict.
Does the add-in work with more than one machine on network? Or does anyone know how to solve that? I've been tried to put the VBA source under a control version the more than 2 months!
Thank you very much!
Daniel
|
|
|
|

|
Hi, I love this tool, it makes managing an excel vba project with SVN much easier. I am now starting to use Mercurial (aka Hg) and TortoiseHg and have modified SourceTools to call hgtk.exe. At present it just replicates the original 5 buttons so there is no distributed funcionality in there yet (shelve, push, pull etc).
Assuming rkapl is happy with this, where would the majority prefer to see it hosted - I'm guessing bitbucket since that is where TortoiseHg lives but I'll leave it open to debate for a while and see who wins.
|
|
|
|

|
This seems to be a small, very minor issue, but as I am just now testing this tool, it seems that if one module has a small change made to it, when I go to commit just that one module to the repository, I am told by the Tortoise UI that "No files were changed or added since the last commit....". If however, I go to commit all the modules, then it notices that that one module was indeed changed.... curious. Have you noticed that as well?
Also, I'm a bit confused about the Overlay Icons in Windows explorer. I followed your setup steps exactly. And after importing the .XLS file along with the .XLS.SRC folder, and then subsequently checking them out to an empty folder, only the .XLS.SRC folder has the expected Overlay Icon. And as I continue to modify that .XLS and its modules the Overaly Icon does not appear on the file but does appear on the .XLS.SRC folder. Do you have any idea why the .XLS file does not have that Overlay Icon? Have I possibly done something incorrect?
This is a Windows XP Pro SP3 machine with Subversion setup on a server and TortoiseSVN installed on the workstation.
|
|
|
|

|
At least as far as the Overlay Icons issue goes... that was easily remedied by changing the TortoiseSVN Settings and putting a checkmark by Network Drives. I'm still not sure why the folder had the right icons and the workbook did not, but in any case, that took care of that issue.
|
|
|
|

|
Just wanted to say this did everything I wanted, and more. Thanks.
|
|
|
|

|
Hello,
does anybody know how I can get keywords expanded in my VBA-modules?
I setup keyword expansion for *.bas within TSVN.
This causes expansion in the files SourceTool handles.
e.g. TestWorkbook.xls.src\Modul1.bas contains expanded keywords.
'$LastChangedDate: 2009-06-15 00:09:01 +0200 (Mo, 15 Jun 2009) $
'$Rev: 8 $
But in VB-editor I don't get the expanded keywords. Only the keywords themself.
'$LastChangedDate$
'$Rev$
Thanks for any reply!!
|
|
|
|

|
Hi!
This is due to the fact that you have to reimport the Modules. Either you can do this manually by "opening" the files with the first button or it is done automatically when updating the files from the repository.
The source files on disk are just exported modules, when importing them again into Excel, the modules should contain everything that was changed outside (except module meta information, such as Attribute VB_.. entries and the like.
-regards,
Roland
|
|
|
|

|
This is a great tool and it has been a life saver!
I just wanted to let you know that i have taken the liberty to add some new buttons to your toolbar. the revision graph and repobrowser!
|
|
|
|

|
good to hear that. I collect these ideas for the successor tool "OTSVN" (whenever I find the time to finish it).
-regards,
Roland
|
|
|
|

|
This is definitely one of the most creative and helpful tools I've found in a long time. I noticed, though, that every time I perform a commit or diff, any .frx files show up as having changed, even if I haven't changed them (or made any changes to the entire file at all). Do you have any ideas how to fix this?
Zach
|
|
|
|

|
Sorry, there's no way to fix this as it is VBA behaviour to change a few bytes every time you export a userform to a frx (binary data in the form) file.
But as the frx file is binary anyway and therefore useless for source control, I tend to ignore it (however still put it under source control, as there are still sometimes changes to it).
-sorry, but that's it.
Roland
|
|
|
|

|
From what I have seen while working with this code, this code will be a tremendous help in updating my excel spreasheets. However, I still couldn't figure out how to compare my existing spreadsheets and the previous versions. Help! please!
|
|
|
|

|
Hi kaifu!
Thanks for the nice words, however I have to make one thing clear: Sourcetool.xla is NOT for comparing Spreadsheets, rather for comparing the VBA code modules inside Excel Workbooks.
After having said that, the following procedure can be used to compare different versions of code modules.
Go to the .xls.src folder that was created during the initial save of the code module and put under version control using Tortoise SVN as described. Using the Tortoise SVN (version 1.5.3 and above) context menu of that folder, use "Show Log" to display all versions of the repository.
You can then use the topmost part of the log messages window to compare either the various versions with the working copy in your local checkout folder (context menu "compare with working copy") or with the respective previous version (context menu "compare with previous version").
-regards,
Roland
|
|
|
|

|
It will be very nice so that you see the svn source control status right in VBE without going to Windows Explorer.
Also inspired by Rob Bovey's CodeCleaner, I implemented an also identical program (functionality-wise) for SourceSafe using its API, but since has been looking for a way to override the icons...
Thanks,
Steven
modified on Friday, October 17, 2008 5:49 PM
|
|
|
|

|
After some research I found some more information regarding this:
Tortoise SVN has a project dedicated to icons at here: TortoiseOverlays it utilizes windows shell's internal support for icon overlays as well as windows registry to achieve this.
Through a combination of windows control API (comctl32.dll) calls (TreeView_GetImageList, ImageList_AddIcon, and ImageList_SetOverlayImage), I was able to overlay an icon image on top of a tree node within the project explorer treeview control.
|
|
|
|

|
Dear Steven!
Great! Would love to hear more about that, as I'm also trying to make the new subversion addin (also for other office VBA parts, Word, powerpoint, access...) a bit more slick.
-regards,
Roland
|
|
|
|

|
Can you show how you did this?
|
|
|
|

|
Hi, I set breakpoints to each SUB in MExportImport
when i click Save the code is never executed
when i manually start "saveto()" your code exports MExportImport, nothing more.
I set up the paths and the "security setting", do i need something else?
|
|
|
|

|
Well, which Office version/part of Office are you using it in?
-regards,
Roland
|
|
|
|

|
I'm using Excel 2003,
but now save works,
don't know why, just reinstalled your code one more time and changed nothing in the settings.
tried this several times before and did not work...
now going to test everything else..
just one last short question,
your tool also exports the workbooks als .xwk files.
since my code is jusst in a xla and not inside a workbook, can i turn this off?
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
VBE IDE addin for comparing and versioning VBA using SVN or CVS
| Type | Article |
| Licence | GPL3 |
| First Posted | 15 Mar 2007 |
| Views | 90,333 |
| Downloads | 1,312 |
| Bookmarked | 36 times |
|
|