473,405 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Can't call COM Add-in from VBA (Excel)

1
Hi Folks,

I'm new to the land of VBA and wonder if someone can help me:

I have an excel add in dll that contains a number of functions etc. I can call these functions from the sheet directly with no problem using syntax such as:

Expand|Select|Wrap|Line Numbers
  1. =MyRoutine("String1", "String2", True, "String3")
  2.  
However, when I call this routine from my VBA code I get an "Automation error Unspecified error" message. The syntax I use is:

Expand|Select|Wrap|Line Numbers
  1. Application.Run "MyRoutine", "String1", "String2", True, "String3" 
  2.  
The add-in is installed correctly but I keep getting the error I've been scratching my head for a couple of days with this problem - anyone have any iseas what I'm doing wrong?

Any help is greatly appreciated,

MrTed
Jul 28 '10 #1
0 881

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Razor | last post by:
How can I call a sub and keep the main program running while it works?
3
by: zx.zhangxiong | last post by:
Dear all, I'm puzzled about the usage of class member function. Any help would be appreciated. class Account { ...
15
by: jon | last post by:
How can I call a base interface method? class ThirdPartyClass :IDisposable { //I can not modify this class void IDisposable.Dispose() { Console.WriteLine( "ThirdPartyClass Dispose" ); } } ...
1
by: | last post by:
hi to all how can I call and send parameter a aspx page with a c sharp class?
3
by: ano | last post by:
How to reset Mutex.ReleaseMutex()? I can't call Mutex.WaitOne() again because the Mutex status seem to be fix to ReleaseMutex(). Do I need to create new Mutex() every time after ReleaseMutex()? ...
0
by: fndjoum | last post by:
I have created a web service with Visual Studio 2005 on my machine. But because of firewall , I can't call it remotely from the browser. Any idea how to call a web service through firewall?? ...
0
by: fndjoum | last post by:
I have created a web service with Visual Studio 2005 on my machine. But because of firewall , I can't call it remotely from the browser. Any idea how to call a web service through firewall?? ...
1
by: mamidogad | last post by:
Dear Sir; How can I call mandatory part of XML from other path and acheive validation process at the same time. My full XML is divided to three parts (front, body, and back) how can I call...
2
by: mahi543 | last post by:
how can we call one class main method from another class main method? i tried but i got an idea for method we can call one method from another method
3
by: parthpatel | last post by:
hello how can i call python function from xul ??? i m trying to call python from xul how can i do that ??
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.