Jacob really is a tool to work here. I recommend that you take the time to learn a little about how COM and ActiveX work, and I think you will find it easier to use. COM is an achievement, but it is difficult. Packers like VB seem lightweight (for the limited use they work for), but it's not at all easy. I have a great book on learning COM, but right now I don’t have a name ...
You want to know about the IDispatch interface (this is what is developed in most COM interfaces for Excel). This is an unpleasant, unpleasant interface (one of those viral things with which you can do so much that it is impossible to understand what is actually happening), but its study is key.
If you have problems in only one area (i.e., getting the value from the cell), you can grab the source for Scriptom and see what they do (open source, after all!).
Another suggestion is to try to implement some test cases of your code in VBA and make sure that you think correctly about all returned values. When we did Excel automation in one of our Java applications, we implemented the general algorithm from Word VBA, worked through problem cases, etc. After that, passing Java Jacob was pretty simple.
source share