User forms

Zimmerman

Well-known Member
Joined
Jan 22, 2009
Messages
663
Does anybody know how to create a user form that opens when the worksheet is opened that asks the user "What the length is", "What the Width is", and "How far down to measrure". And after they answer these questions their answer will be placed on a tab in cell C6, C7, and C8.

Thanks in advance
Windows XP
Excel 2003
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Does anybody know how to create a user form that opens when the worksheet is opened that asks the user "What the length is", "What the Width is", and "How far down to measrure". And after they answer these questions their answer will be placed on a tab in cell C6, C7, and C8.

Thanks in advance
Windows XP
Excel 2003

Hello.

you need to do a couple of things: in the worksheet VBA do something like:
Code:
Private Sub Workbook_Open()
Call showform
End Sub
Then in a normal module make a sub:
Code:
Sub showform()
UserForm1.Show
End Sub

When you make your userform, use lables to ask the questions and textboxes for the answers. In the properties of the textbox(s) set the ControlSource to the cells you want to change.
 
Upvote 0

Forum statistics

Threads
1,213,562
Messages
6,114,322
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top