15

I have team members that need to be able to checkin VBA modules/classes created in Excel 2007/2010.
I want to be able to use some TFS functionality, ideally from within the VBA IDE.

I don't want to checkin Excel files as artefacts. Ive seen the MSSCCI provider download from MS.

I don't think in this case the Windows shell extensions from the Power Toys helps because I don't want to have to create an additional process for developers to export and/or import class & module files from their work in VBA project maintenance.

Question: Can someone provide a way to use the MSSCCI provider with Excel 2007 (or even Excel 2010 only)? Do you think this would only be possible with custom VBA addin?

Update:

I've thought about using an approach such as making a custom VBA addin and adding some commands that make basic calls to the TFS client object model.

Just found this post from Codeproject from another question this time looking for the same thing but for SVN rather than TFS.

Community
  • 1
  • 1
Anonymous Type
  • 3,051
  • 2
  • 27
  • 45
  • To earn this bounty... please provide the steps for configuring Excel 2007 VBA IDE to checking modules and classes to TFS 2010. – Anonymous Type Sep 07 '11 at 21:58

1 Answers1

4

There is a Visual SorceSafe provider for VBE that comes with Office XP Developer. I used it for many years and still have it installed. It does what you want, but using VSS and not TFS.

Note that the product is not supported, but VBA/VBE has not changed since Office 2000. I used the provider for two years for Excel 2003 development with no problems.

I seem to remember recently an article describing how you can use VBA/VSS with the extra benefit of having the code also "posted" to TFS. Since I no longer professionally code in VBA/VSS, I didn't have a need for the article, but did find the topic interesting.


Office XP Developer has a few other tools that make it worth the time to install.


Access Source Code Control and Team Foundation Server

Today's guest writer is Mike Sullivan - a tester on the Access team

With the release of Visual Studio Team System 2008, we've recently received questions from several customers regarding whether or not Team Foundation Server (TFS) can act as a source code control provider for the Access source code control (SCC) component. The answer is yes!

Although many folks refer to Access’ source code control component as “SourceSafe integration,” that only tells part of the story. SCC integration within Access is fully compatible with any provider that implements the Microsoft Source Code Control Interface (MSSCCI). Although Visual SourceSafe is one of the more widely used MSSCCI providers, there are several other products that implement this interface, including Team Foundation Server 2005 & 2008 as well as IBM ClearCase.

However, MSSCCI support in Team Foundation Server is not native and requires an additional add-in available for download:

Of course, to enable SCC functionality from within Access, you’ll also need the Source Code Control add-in. This shipped as a free download as a part of the Access Developer Extensions for Access 2007 and as a separate free add-in for Access 2003:

If you’re interested in taking this configuration for a whirl, you might want to download the Team Foundation Server Virtual PC image that has been made available by the Visual Studio team. Included on this virtual PC are copies of Visual Studio Team System 2008 and Office 2007 Enterprise SP1 (though Access is not installed by default on this image – you’ll need to go to Add/Remove programs within Control panel and launch setup to install Access). This trial image is good through December 31, 2008.

To get the Virtual PC image working, you’ll also need to install the Access Developer Extensions (the MSSCCI add-in is preinstalled). Since VSS is the default MSSCCI provider on the machine, you’ll need to tweak a registry key to get Access to use Team Foundation instead:

Path: HKEY_LOCAL_MACHINE\SOFTWARE\SOURCECODECONTROLPROVIDER
Key: ProviderRegKey
Value: SOFTWARE\Microsoft\Team Foundation Server MSSCCI Provider

Hopefully those of you curious about support for TFS have had your questions answered!

Community
  • 1
  • 1
AMissico
  • 21,470
  • 7
  • 78
  • 106
  • do you have a link to the article? I have seen the Office XP provider you are talking about. Do you know if its possible to repoint that component to the MSSCCI provider for TFS 2010? – Anonymous Type Sep 02 '11 at 01:53
  • Since the provider supports "Visual Visual Basic 6 SP6" and "Access 2007", it is possible it will work with. – AMissico Sep 02 '11 at 01:56
  • Sorry, I did not add a reference to the article in OneNote. – AMissico Sep 02 '11 at 01:59
  • doh, currently cannot access OzGrid(firewall at work). Can you say from reading the article whether using the Office XP Developer addon allows swapping the VSS MSSCCI for the TFS MSSCCI? – Anonymous Type Sep 04 '11 at 22:16
  • so this does not provide the needed route to Excel's VBE then does it? – Anonymous Type Sep 05 '11 at 05:20
  • I think it does. Everything that I looked at seems to indicate that you can do it. – AMissico Sep 05 '11 at 07:03
  • This seems to solve the issue for Access 2007/Access 2010 to TFS scenarios. However I'm less clear if Office XP Developer + TFS MSSCCI provider + reg tweak will get me working in Excel 2007/Excel 2010. Can anyone confirm whether this configuration has ever worked? Do I need the reg tweak? Also let me know even if you only got this working under Excel 2003. Next job finding a copy of Office XP Developer... argh – Anonymous Type Sep 06 '11 at 23:07
  • great answer, i think it will be everything i need, don't want you to miss your bounty! :D – Anonymous Type Sep 13 '11 at 01:23