This site Web
Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us

Sunlit Design > The Sun API > Documentation > Visual Basic and Visual Basic for Applications


Index


- Introduction
+ Using the Functions
+ User Guide
+ Function Reference
+ Constants

Contact Developer

Downloads

Visual Basic and Visual Basic for Applications

The Sun API functions may be used from Visual Basic (VB) and Visual Basic for Applications (VBA).  Programs that use VBA include Word, Excel, Access and Outlook.

Header/Include File

To call The Sun API functions from VB or VBA import the vbmodule.bas file into your project.

Referring to Constants

Constants are referred to by name.

Example

An example of calling a function from VBA:

To convert 23 degrees to radians and save the result in variable x: 

    x = sdD2Unit(23,sdUnitRadian)