Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VBA in Excel

Posted on 2000-05-07
2
148 Views
Last Modified: 2010-05-02
I'm making user forms in excel by using VBA.  I'm using command buttons to move through the forms.  The problem I am having is making one to go to the previous form and the other go to the next form.  What do i assign to each button to do their job?
0
Comment
Question by:Artemis_23
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
ID: 2786140
Are you trying to develop some wizard.

If yes, you might think about the "microsoft" way: having several frames that you can move and hide. This will take some more ressources and might be tedious to do, but i found that i solved more problems than it generated.

Otherwise, you can have in the Click Event of the commandbuttons something like this:


Private Sub cmdPrevious_Click()
 frmForm1.Show
 me.hide
End Sub

Private Sub cmdNext_Click()
 frmForm3.Show
 me.hide
End Sub


Hope this helps
0
 

Author Comment

by:Artemis_23
ID: 2790132
Thanks a lot.....you answered my question really well...and it works...so....that's always a plus.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question