473,597 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple Userform

1 New Member
Hi i am new to excel VB. can anyone tell me how to link userform to another userform?

My concept for my program
I have set up a userform with a couple of option. after the user has chose the options and click next, userform2 will be activated.

Thanks
Sep 14 '06 #1
2 3264
milkyman
12 New Member
Ok, that's very easy.

If you make a CommandButton on your form and place this code inside it. it wil work.

Private Sub CommandButton1_ Click()

UserForm2.Show

End Sub

de command "UserForm2.Show " calls your 2th form.
(i assume that your 2th form is called UserForm2, if not you have to put here the name of your form)

have funn with it......
Sep 14 '06 #2
NSF12345
21 New Member
When you have finished with that form, and have a close button, just put "userform2.hide " this hides the 2nd userform. Some people prefer to hide the 1st form when the 2nd form is opend, so they have something like this:

'Code on Form1
private sub Command1.click ()
form1.hide
form2.show
end sub

then when they have finished with the 2nd form they swap the code around to this:

'Code on form2
private sub Command1.click ()
form1.show
form2.hide
end sub

hope tht helps
Sep 15 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2871
by: Marknanh | last post by:
Simple question. I'm a VBA programmer who has just switched to VB .net. I'm using a UserForm called Form1 with a text box called TextBox1. I'd like to reference the number in the text box in the module called Engine by using the following statement Dim num as Double num = Form1.TextBox1.Value However, I can not see the TextBox1 after I finish typing "Form1". What's
0
1664
by: szymon_k | last post by:
Hi. How to set the userform as subform of some access form? What I need to do is to insert some userform into the form, so that it will be under the same conditions of resize, move and other operations on this access form to be applied also to this userform. I just want this userform to look like (for example) some textbox, subform or object frame of the usual acccess form. Thank's in advance.
3
4952
by: gw.boswell | last post by:
I have created a userform with textboxes for data entry. I also have a command button that calls a second useform. A user enters certain information in the first useform but if he/she wants to do additional calculations, they use the command button to bring up the second userform and add additional information via textboxes in the second form. However, the calculations need the data from both userforms. Given that the variables are...
2
1291
by: golf32902 | last post by:
i have a button on sheet 1 and i would like the userform to insert the text i input into sheet 2. And if there is a way the next time i access the userform that is inserts wha i have in the cell already so i could add to it.
2
12499
by: hapnendad | last post by:
I am using a selection_change event on a worksheet to launch a userform that will populate the cell when a selection is made from a drop down list box on the form. Selection_change shows form if cell to the left of the active cell meets a certain condition and the active cell is in column 8. Problem: when conditions warrant, selection_change shows userform. when executed Excel locks. VBA editor indicates code is running but form can not be...
3
2126
by: fcgp1985 | last post by:
Hi, I have created a command button that validates information on the userform. For example: While textbox1.Text = "" MsgBox "Please enter the reference of the document.", vbExclamation, "Document Reference" userform1.Hide userform1.Show Wend
43
9869
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail does. I found a script that does this on easycfm.com (Topic 13543). But anyway when i try to upload multiple files it will create multiple records in my database (like it should), but it wont upload multiple files. What ever file i choose to upload...
25
5382
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if my question needs to be here or in coldfusion. If i have my question is in the wrong section i am sorry in advance an will move it to the correct section. Basically i have a multiple select box. An it works except for this one part i want to add to it.The first box i have is called project members which shows the users you can choose to send an email to and the other box is called assignees which is the...
3
11434
pod
by: pod | last post by:
Hello What I want to do is: from this workbook (thisWB), I want to access a userform's properties that are in another Workbook (toolWB) I can do this for worksheets, but I want to do it as well for the userform I have searched the help files, forums and went through all of the properties of workbooks and worksheets to no avail. I have a way to go around my problem but not without rewriting a lot of code.
0
7971
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7893
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8040
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6698
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5436
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3932
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1495
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.