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!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,338
Members
448,569
Latest member
Honeymonster123

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