Scripting Felix in VBA: Beginner's Question

2 views
Skip to first unread message

Julia T

unread,
Dec 7, 2009, 5:04:18 AM12/7/09
to felix-users
I'm working on a couple of macros to help make Felix meet a few in-
house needs. I have been able to use the memory with no problem
through the App2 interface, but when I try to use most of the
Properties and Methods listed in Appendix A of the manual, nothing
seems to work.

I am trying to return a message box with the number of glossary
entries found for a given query, but when that did not work I started
trying to do other things as well, and found none successful.

I would assume that I was just messing up the code, except that
everything has worked beautifully with the app2 interface, and even
the sample code provided, copied and pasted directly from the manual
into Visual Basic Editor, does not work. I get: 「オブジェクトは、このプロパティまたはメソッド
をサポートしていません。」

I wonder, are the methods and properties listed in the manual out of
date? If not, does anyone have any idea why this may be happening?

Thanks,

Julia

Ginstrom IT Solutions

unread,
Dec 7, 2009, 6:46:39 AM12/7/09
to felix...@googlegroups.com
> From: Julia T [mailto:julia....@gmail.com]
> I'm working on a couple of macros to help make Felix meet a few in-
> house needs. I have been able to use the memory with no problem
> through the App2 interface, but when I try to use most of the
> Properties and Methods listed in Appendix A of the manual, nothing
> seems to work.

There were some errors in the scripting specification, which I've fixed now. Sorry for the headache that must have caused.

The following code snippet should work in VBA:
' Create the Felix object
Dim felix As Object
Set felix = CreateObject("Felix.App")

' Make it visible
felix.Visible = True

' Now, add some memory & glossary entries.
' Order is: source, translation, context
felix.AddMemoryEntry "white", "blanco", "from VBA"
felix.AddGlossaryEntry "dos", "two", "VBA gloss entry"

If you could let me know what kind of task you have in mind (on list or off), I may be able to help you with creating a script.


Regards,
Ryan

=================================
Ryan Ginstrom
Felix Translation Memory Software
sup...@felix-cat.com
http://felix-cat.com/
+81-(0)98-958-1297
=================================



Reply all
Reply to author
Forward
0 new messages