Formula or VBA

bcs0262cop

New Member
Joined
May 22, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I have two worksheets in a workbook. In worksheet #1 I have a dropdown in cell C26, which contains 7 names. I would like a formula or VBA that when any name, selected from the dropdown, is selected the data in cell A26 is copied to the worksheet #2 in cell #D5. I have tried several formulas, they will work if only one criteria is entered from the dropdown. I am having issues
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try this:

This is a sheet change again script.
You must right click on the sheet tab and post in this code
When you make a change to Range("C26") the script will run.
Excel Formula:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$26" Then
Sheet2.Range("D5").Value = Target.Value
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,287
Members
452,902
Latest member
Knuddeluff

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