Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default create wizard with Excel


hi, does anybody know how to create a wizard with vba?
hikk

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default create wizard with Excel

Let's create the following simple example. You want to make a 2-step wizard

1) Add 2 Userforms, and add 1 modul
2) Name the Userforms "UserForm1" and "UserForm2"
3) In the first Userform, add 2 commandbuttons
1st button : caption = "Cancel", name = "cmb_cancel
2nd button : caption = "Next", name = "cmb_next
4) In the second Userform, add 3 commandbuttons
1t button : caption = "Cancel", name = "cmb_cancel
2nd button : caption = "Back", name = "cmb_back
3rd button : caption = "Next", name = "cmb_next
5) Place the following code into the two forms and module

'----------UserForm1 Code------------------------
Private Sub cmb_cancel_Click(
Me.Hid
End Su

Private Sub cmb_next_Click(
Me.Hid
UserForm2.Sho
End Su
'-------------------------------------------------------

'----------UserForm2 Code------------------------
Private Sub cmb_back_Click(
Me.Hid
UserForm1.Sho
End Su

Private Sub cmb_cancel_Click(
Me.Hid
End Su

Private Sub cmb_finish_Click(
Me.Hid
'do anything here. For example, collect form dat
End Su
'-------------------------------------------------------

'---------- Module Code------------------------
Sub run_wizard(
UserForm1.Sho
On Error Resume Nex
Unload UserForm
Unload UserForm
End Su
'-------------------------------------------------------


----- hikka wrote: ----


hi, does anybody know how to create a wizard with vba
hikk


-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
existing workbook,want to create chart-wizard will not open Toby Charts and Charting in Excel 0 November 21st 06 05:24 PM
i'M TRYING TO CREATE A cONTROL CHART USING A WIZARD. Excel Control Chart wizards Charts and Charting in Excel 0 May 29th 06 03:43 AM
i need an excel wizard lushus21 Excel Worksheet Functions 1 February 13th 06 12:36 AM
i need an excel wizard lushus21 Excel Discussion (Misc queries) 2 February 12th 06 11:15 PM
Allow the use of the fx wizard within the fx wizard for nesting Ron Excel Worksheet Functions 1 October 2nd 05 08:58 PM


All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"