Solved

VBA in Excel

Posted on 2000-05-07
2
150 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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
VB6 - Compare and highlight cell not the same 3 62
Automatic Email Reminder 4 94
Dinamic report to Crosstab query 9 60
Fastest way to find and count same items VB6 16 62
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

751 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