OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 12-03-2013, 05:28
ager ager is offline
Join Date: Jul 2010
Location: Russia
Posts: 45
Default Global objects

Sorry for my newbie question. In Visual Basic Reference guide I found information about some global objects such as global.pi(), global.min(numeric,...) and so on. How to use these objects in VBA for CorelDraw? Give me example, please. Thank you!

Last edited by ager; 12-03-2013 at 20:49.
Reply With Quote
Old 13-03-2013, 06:01
ager ager is offline
Join Date: Jul 2010
Location: Russia
Posts: 45

OK, let me turn my question around. How to use some math functions in VBA for CorelDraw like min(), max(), nominal() etc? I know only one method: it's necessary involve Excel Application, for example:
Sub GlobalFunctionMin()
Dim MinVal as Double
With CreateObject("Excel.Application")
    MinVal= .WorksheetFunction.Min(10, 12, 3, 5)
    MsgBox "The Minimum value is: " & MinVal
End With
End Sub
Or may be I must create special functions for it?
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Global Macro delete Michael Cervantes CorelDRAW/Corel DESIGNER VBA 17 16-11-2010 08:11
Exporting a Macro out of Global sallybode Macros/Add-ons 2 04-06-2006 19:34
Get Global Events Macronix CorelDRAW/Corel DESIGNER VBA 2 20-03-2006 11:07
Global Variables ddonnahoe CorelDRAW/Corel DESIGNER VBA 3 08-08-2005 16:10
Global color change ddonnahoe CorelDRAW/Corel DESIGNER VBA 8 18-05-2004 11:08

All times are GMT -5. The time now is 00:20.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com