Function or Subprocedure

zaska

Well-known Member
Joined
Oct 24, 2010
Messages
1,046
I am just confused in developing a macro.

I have to run an application named sqt

i have assiagned this as Q = CreateObject("sqt.application")

This sqt application runs a process called analysis.

T = Q.Analysis

So...how do i run this application using VB...

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Kindly suggest me with the syntax part for running a third party application using VBA

Thanks
 
Upvote 0
You could Shell to it but then you wouldn't be able to communicate with it very well, as far as I'm aware... data in, perhaps, but data out, no, unless perhaps you could get it to write its output to a disk file.

If this other application is DDE-compliant you could open a DDE connection to it but you'd need to find out which commands were available across that type of connection. I've connected from Excel to Word and to Access via DDE but I've never even tried with any non-MS applications. I'm aware others have done this though.

http://en.wikipedia.org/wiki/Dynamic_Data_Exchange


Perhaps you could:-
  • Google dde and your application's name to find out whether it's DDE-compliant and whether anyone else has done this before
  • ask the application's vendor directly whether their product is DDE-compliant
  • Google dde msdn for some generic code
If you're lucky the vendors will be able to supply you with a list of the implemented commands and if you're very lucky, maybe some sample code as well.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,258
Members
452,901
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top