Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VBA in Excel

Posted on 2000-05-07
2
Medium Priority
?
152 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
[X]
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
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

660 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