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
 

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Steeviee

Active Member
Joined
Sep 9, 2009
Messages
380
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,217
Messages
5,594,887
Members
413,947
Latest member
gizmolucy

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
Top