Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
excel course tate modern - excel vba forms

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » excel course tate modern - Excel VBA Forms

excel course tate modern - Excel VBA Forms

ResolvedVersion Standard

Ben has attended:
Excel VBA Intro Intermediate course
Access Introduction course

Excel VBA Forms

What is the easiest way to go from one form directly into another depending on the result of the first?

RE: Excel VBA Forms

Hi Ben

I'm taking your question to mean if you select a particualr value in the first for and this dictates which new for to open.

With this in mind lets suppose you have a combobox cboSelect on frmStartForm and frmX and frmY

On the OK button of frmStartForm place the following code:

If cboSelect.Value = "Form X" then
frmX.show
Else
frmY.Show
End if


Hope this helps

Carlos


Excel tip:

Removing custom dictionary entries

If you add something to the custom dictionary in Excel you cannot remove it. The way to get around this is to go into word and remove it there.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.