Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vb commands

ResolvedVersion 2007

Ronnie has attended:
Excel VBA Intro Intermediate course

VB Commands

What are the VB Commands to interface in other software applications

RE: VB Commands

Hi Ronnie, thanks for your query. The answer to your question depends a lot on the software you are trying to connect to! Essentially, when connecting to, say Word, from Excel VBA you declare a reference to the Word object (i.e. tell Excel Word actually exists!) throught Tools-References. You can then control the Word object model from Excel.

However, to control completely different software applications you have to gain access to their individual API (Application Programming Interface). This is a long way beyond the scope of this forum I'm afraid, but have a look here for a useful (VB, not VBA) introduction to this topic.

http://allapi.mentalis.org/vbtutor/tutmain.shtml

Hope this helps,

Anthony

Mon 6 Jun 2011: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Counting Blanks

Some times you want to check if there are cells missing data in your range. You can use the COUNTBLANK FUNCTION to acheive this. It is =COUNTBLANK(Range). Note Cells with formulas that return "" (empty text) are also counted. Cells with zero values are not counted.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.