Macro Help - dropdown list to new tab

PghYoPro

New Member
Joined
Dec 9, 2015
Messages
23
Hi,

I have a dropdown in cell D4. This changes a unique ID in cell D7, which calculates the rest of the sheet.

Is there a simple macro that can copy cell AD57 (the result) into a different tab for each name as the macro cycles through the list in cell D4?

Thanks for any help in advance.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
To clarify, I don't need a tab for each name from the dropdown in cell D4.


Just looking to extract the name and the result to a new tab for a summary tab
 
Upvote 0
Where (what cell) do you want the extracted data to go, and what do you want the name of the new tab to be? Is the drop down a data validation drop down?
 
Upvote 0
Where is the list of names that is found on the drop down - what sheet and what range on that sheet?
 
Upvote 0
Run this with the sheet holding the drop down as the active sheet. Assumes a sheet with tab name "summary" is already present. List of the values in AD57 on the active sheet that result from looping through all the items on the validation list on sheet "Pool Listing" will be returned to the summary sheet in col A starting in A1.
Code:
Sub PGYYoPro()
'run this with the sheet holding the drop down active
Dim i As Long
With ActiveSheet
    For i = 5 To 90
        .Range("D4").Value = Sheets("Pool Listing").Range("A" & i).Value
        ActiveSheet.Calculate
        Sheets("summary").Range("A" & i - 4).Value = .Range("AD57").Value
    Next i
End With
End Sub
 
Upvote 0
Great, thanks! How would I go about adding the correlating name in D4 to column B in the summary tab to match up with the returned values?
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,852
Members
449,096
Latest member
Erald

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