OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31-08-2004, 02:36
bumblebee
Guest
 
Posts: n/a
Default creating command buttons

I am trying to create command button on a new toolbar which I click on and it opens a respective userforms.

I went through customise option ,but there is no specification on using it with forms.do i have to create a macro which will do a showform and attach a macro to it.

your help will be appreciated.

attached is the form which i try to open when clicked.
Attached Images
 
Reply With Quote
  #2  
Old 31-08-2004, 09:35
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: creating command buttons

Yes, you need to create a simple macro which invokes a form. For example:

Code:
Sub ShowForm1()
    UserForm1.Show vbModal
End Sub
Then just go to Tools>Customization>Commands>Macros and add the ShowForm1 macro to the toolbar. It will show the form when clicked.

I hope this helps.

P.S. If you want the form to be floating (that is, so you can return to your document without closing the form), just use vbModeless constant in Form.Show instead of vbModal used in the above example.
Reply With Quote
Reply


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
Creating a menu automatically clausm CorelDRAW/Corel DESIGNER VBA 1 30-03-2004 10:07
Creating executable for distribution with PhotoPaint 9 pmj7 Corel Photo-Paint CS 0 17-11-2003 16:18
Creating New Folder Haucer Corel Photo-Paint CS 1 23-10-2003 08:22
Creating a Static Name? Jon Lorber CorelDRAW/Corel DESIGNER VBA 1 29-04-2003 21:57
Creating macros for CorelDraw 10 in CorelDraw 11 Rick Randall CorelDRAW/Corel DESIGNER VBA 1 14-03-2003 09:00


All times are GMT -5. The time now is 19:36.


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