WinWrap Basic? Visual Basic for Applications?

J

John Doe

I am playing with Dragon NaturallySpeaking (Naturally Speaking)
Advanced Scripting capabilities.

According to the documentation, it is "Visual Basic for Applications
compatible". It also mentions WinWrap Basic, once.

I own Microsoft's Visual C++ NET 2003. Can I buy and use Visual Basic
for a Visual Basic for Applications programming environment?

Is Visual Basic for Applications a language by itself, or is the
syntax, keywords, and stuff dependent on the application?

Thank you.



This is the language reference, a duplicate of the online help.

www.asent.com/downloads/at2k2vb50.pdf
 
J

Jezebel

You don't need to buy anything to use VBA -- it is the programming language
built in to all Office applications, and some third-party applications also.
Start Word, press Alt-Fll to switch to the development environment, and
start coding.

The basic syntax and language etc is standard for all implementations; but
most of the useful work involves working with the objects, properties,
methods, and events of specific applications. If you use VBA in Word, then
the Word object model is 'native' to your application; but you can add a
reference to any other compatible application libraries -- Excel, Project,
Corel, etc etc -- and use those applications' objects also. In this respect,
Visual Basic (as opposed to VBA) is essentially the same. The main
difference is that VB can create stand-alone applications. VBA cannot.

The Dragon compatability means either that Dragon exposes its objects,
properties, and methods to the world, so, in VBA, you can manipulate them;
or it might mean that Dragon itself provides VBA. (or both).

Never heard of WinWrap Basic.
 
J

John Doe

Thanks for the thorough reply.

I think what I need to do is find an older version of the MSDN
Library. Apparently Microsoft has dropped independent reference to
Visual Basic for Applications, and only includes reference to VBA
for Microsoft's applications. The following title on Microsoft's
web site suggests there was an independent reference in prior
versions of MSDN Library.

MSDN Home > MSDN Library Archive > Microsoft Visual Basic for
Applications Language Reference

It gives a significant example of code that works perfectly after
being copied and pasted into the NaturallySpeaking VBA program
editor.

Dim ReturnValue, I
ReturnValue = Shell("Calc.exe", 1) ' Run Calculator.
AppActivate ReturnValue ' Activate the Calculator.
For I = 1 To 100 ' Set up counting loop.
SendKeys I & "{+}", True ' Send keystrokes to Calculator
Next I ' to add each value of I.
SendKeys "=", True ' Get grand total.
SendKeys "%{F4}", True ' Send ALT+F4 to close Calculator.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top