Target Address

  • Thread starter Thread starter Legacy 185509
  • Start date Start date
L

Legacy 185509

Guest
Hi
here is what I am trying to do, I have attached file
in sheet1 u select whichever you want
if U select A051 it will go sheet2 and in cell A1 will select B233_Tag_Id from drop down menu .

this is one way I am trying to do this

here is another way
by using case
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
     
    Select Case Target.Address
         
    Case "$A$11"
        Sheets("Sheet2").Select
        Range("A2").Select
        ActiveCell.FormulaR1C1 = Range("S12")
        
    Case "$A$12"
               Sheets("Sheet2").Select
        Range("A2").Select
        ActiveCell.FormulaR1C1 = Range("S13")
    
     Case "$B$21"
               Sheets("Sheet3").Select
        Range("A2").Select
        ActiveCell.FormulaR1C1 = Range("S2")
    End Select
End Sub
I will do for rest of them myself that was just example of what i am trying to do
please help

I wasn't able to upload any file to this thread
here is link to download it
http://www.mediafire.com/?dzbab5f9zsptywj
thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,224,518
Messages
6,179,258
Members
452,901
Latest member
LisaGo

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