[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Can't get SubWCRev COM object to work in Excel - but in Word

From: tomassan <tomas.sandkvist_at_gmail.com>
Date: Tue, 24 Jun 2008 04:45:47 -0700 (PDT)

Hi!!

I would like to use the SubWCRev COM object in Office applications.
Tried the following short VBA test in Excel where I get error 424:
Object required when I try to call the GetWCInfo method. The strange
thing is that it works in MS Word...

The SubWCRev.exe program is listed (and selected) under Tools ->
References as LibSubWCRev

The code;

Public Sub ReadMAIN()
    Dim oSvn As Object
    'Set oSvn = CreateObject
    Set oSvn = CreateObject("SubWCRev.Object")
    oSvn.GetWCInfo ActiveDocument.FullName, 1, 1
    Debug.Print "Revision: " & oSvn.Revision
End Sub

Any ideas?

Regards,
Tomas Sandkvist
Sweden

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-06-24 13:47:01 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.