Forms with VBA

mike21mcd

Board Regular
Joined
Sep 6, 2006
Messages
67
I am creating three forms as drop down boxes. My fourth form is just a button.
Form 1 = Week #
Form 2 = Time
Form 3 = Description

I would like to populate these three forms, then when I select the fourth form (button), have the values within the first three forms be stored on another sheet. Adding to the complexity, my sheet names within the document will equate to Form 1, and I need to select the appropriate sheet to store the data according to the value in Form 1.

I hope this makes sense and appreciate any help you can offer....I am completely stuck on this one. Thanks in advance!
 

Some videos you may like

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Ummm, why not just use one form with three combo/text boxes on it and a single button to xfer the data?

You can then transfer the data to the appropriate sheet with something like this:

<font face=Calibri><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> CommandButton1_Click()<br>    Sheets(TextBox1.Value).Cells(Rows.Count, "A").End(xlUp).Offset(1) = _<br>        TextBox1.Value & " " & TextBox2.Value & " " & TextBox3.Value<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>

Note that there's no error handling to test for valid entries/sheet names.

HTH,
 

Watch MrExcel Video

Forum statistics

Threads
1,123,125
Messages
5,599,856
Members
414,342
Latest member
K Darrell Smith

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