Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » excel course tate modern - Excel VBA Forms
Resolved · Low Priority · Version Standard
Ben has attended:
Excel VBA Intro Intermediate course
Access Introduction course
What is the easiest way to go from one form directly into another depending on the result of the first?
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:How to apply the same formatting and data to multiple sheets at the same time in Excel 2010When you want to format more than one sheet in a worksheet exactly the same way, Ctrl-click the tabs of the sheets you want to group together and they will all turn white. While they are grouped, anything you enter in one sheet gets entered into the others. |
We'll call during UK business hours
Server loaded in 0.08 secs.