UserForm activated by a Button in a workbook

I have a working user form.  I want to create a button on the HOME sheet of my workbook to click to launch the User Form
bjfulkersonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NorieVBA ExpertCommented:
That's straightforward, goto the Home sheet, then goto the Developer tab and in the Controls section click Insert.

Now choose either a Forms command button or a ActiveX comman button and place it wherever you want on the sheet.

If you picked a Forms control you should automatically see the Macros dialog box.

Just click New and you should then see something like this.
Sub Button2_Click()

End Sub

Open in new window

This is where the code goes to open the userform, and here's the code.
TimeSheetEntry.Show

Open in new window

After adding that code this is what you should have.
Sub Button2_Click()
    TimeSheetEntry.Show ' open userform
End Sub

Open in new window


If you added an ActiveX button double click the button.

You should then see something like this, and this is where the code to open the form should go.
Private Sub CommandButton1_Click()
    TimeSheetEntry.Show ' open userform
End Sub

Open in new window

0
bjfulkersonAuthor Commented:
I have what you said but it wont open the userform.
0
NorieVBA ExpertCommented:
I added it to the previous workbook, and added buttons to the userform, though they don't do anything at the moment.

See the attachment.
STL-Function-Analysis-2015-V2.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

bjfulkersonAuthor Commented:
You left a box in the upper left of the home page.  It crashes when I try to delete.

Do you know anything about adding a pop up calendar so I can select a date in the past or future?
0
bjfulkersonAuthor Commented:
How do I use the ADD, UPDATE  and Delete
0
NorieVBA ExpertCommented:
It depends what you want to do with them really, which at the moment I don't know.:)

PS That 'box' was in the original file you uploaded.
0
bjfulkersonAuthor Commented:
What I want to do is "add" the information added to the worksheet form (next available ROW.

Eventually I will want to duplicate this button to update employee information and update codes.
0
NorieVBA ExpertCommented:
Add what information where?

The userform has various other textboxes that don't seem to match to anything on the employee sheet.
0
bjfulkersonAuthor Commented:
I will have to get back in the morning.
0
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.