check box to select data from 1 sheet and input onto sheet 2

madmat252

New Member
Joined
Jan 5, 2010
Messages
10
hi i need a check box or drop down list that once i click on an item it will get data from one cell on sheet 1 and input it into a cell on sheet 2 is it possible. im a complete novice at this and really struggling.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
To create a macro that fires on a drop down menu you need to do the following:

in VBProject select the worksheet you have the drop down list on, and paste this code:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
 If Target.Address = "$A$1" Then
   Application.EnableEvents = False
   If Target.Value = "Item1" Then
Application.Run "Book1!Macro1"
   ElseIf Target.Value = "Item2" Then
Application.Run "Book1!Macro2"
   End If
   Application.EnableEvents = True
 End If
End Sub

Change the Target.Address to the cell containing your drop down box.

Change Item1 Item2 to the name of the items in your drop down selection and also the macro name you want to trigger.

for the drop down box select the cell you want to have the drop down options, open data validation and choose list, assign the range of cells that have all the items in your drop down list.

I hope this makes sense as its been a long day and its also late, have to go to bed...
yawn...
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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