Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VBA in Excel

Posted on 2000-05-07
2
Medium Priority
?
153 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 200 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

879 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