McGaffinWorld
New Member
- Joined
- Apr 26, 2012
- Messages
- 36
Hello all,
Using the below code, rather then having the information go to Sheet2, I would like to beable to send the information to other steets determined by a dropdown menu. I have my dropdown menu in cell E2 which has the names of the other sheets. Can I set the below code to look for the information that is selected in the dropdown and then send the information to the selected sheet? Currently I have multiple buttons and the below code for each button but a dropdown seems more efficent.
Thanks for the help.
Using the below code, rather then having the information go to Sheet2, I would like to beable to send the information to other steets determined by a dropdown menu. I have my dropdown menu in cell E2 which has the names of the other sheets. Can I set the below code to look for the information that is selected in the dropdown and then send the information to the selected sheet? Currently I have multiple buttons and the below code for each button but a dropdown seems more efficent.
Thanks for the help.
- Private Sub CommandButton1_Click()</SPAN>
- Dim c As Long</SPAN>
- c = Worksheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row + 1</SPAN>
- Range("A2:E2").Copy Worksheets("Sheet2").Range("A" & c)</SPAN>
- Application.CutCopyMode = False</SPAN>
- Range("A2:E2").ClearContents</SPAN>
- Range("A2").Select</SPAN>
- End Sub</SPAN>