OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > General

Thread Tools Search this Thread Display Modes
Old 14-02-2006, 09:54
Posts: n/a
Exclamation How can I put Windows Calculator to CorelDraw12 toolbar

Please, tell me how to make some shortcut icon for Windows Calculator on Corel Draw 12 toolbar?
I dont want to enter some keyboard combination...
If someone know how please write...
Reply With Quote
Old 14-02-2006, 10:57
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4


You can do it by creating a tiny VBA macro which would launch the calculator and then add a button to toolbar to start that macro.

Here is how it is done. First, you need to create a macro.

1. Go to CorelDRAW.
2. Press Alt-F11 to launch VBA editor.
3. In the Project Explorere window (on your upper left) you will see a list of modules installed. Look for "Global Macros (GlobalMacros.gms)". See the attached screenshot for reference.
4. Expand the project's node
5. Go to Modules, expand it and double click the CorelMacros module. This should open a code window on the right.
6. Add the following macro code to the end of the code window (copy and paste it from here):

Sub LaunchCalculator()
    Shell "calc.exe"
End Sub
7. Now we are done with the macro, you may close VBA editor now.

It's time to add a button to a toolbar to launch the macro.

1. Go to Tools>Options in CorelDRAW
2. Go to Workspace>Customization>Commands in the tree
3. Select "Macros" from the dropdown list on top of the dialog and look for "CorelMacros.LaunchCalculator" macro in the list
4. If you wish, you can customize the look of the future button. Select the macro in the list and go to the Appearance tab. There you can change the caption and/or image of the button
5. Once done with customization, grab the macro from the list and drag it to the toolbar you want to add the button to.
6. Now you may close the Options dialog
7. Click the button to test that it launches the calculator.

See the attached animation that shows the above steps.

I hope this helps.
Attached Images
Reply With Quote
Old 14-02-2006, 12:06
Posts: n/a

Thanks Alex!
Shortcut work, thanks for quick answer and exp.
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
Question about toolbar -=HKLC=- CorelDRAW/Corel DESIGNER VBA 1 16-10-2004 14:33

All times are GMT -5. The time now is 14:46.

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