Solved

VBA in Excel

Posted on 2000-05-07
2
144 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 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
Comment Utility
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
Comment Utility
Thanks a lot.....you answered my question really well...and it works...so....that's always a plus.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now