Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Range("a1"), Target) Is Nothing Then Exit Sub
Application.Run "mymacro"
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("a1"), Target) Is Nothing Then Exit Sub
If Range("a1").Value = "X" Then Application.Run "mymacro"
End Sub
Private Sub Worksheet_Calculate()
If Range("a1").Value = "X" Then Application.Run "mymacro"
End Sub
=--(IF(B1=1,"1",IF(B1=2,"2",IF(B1=3,"3",IF(B1=4,"4",IF(B1=5,"5",IF(B1=6,"6",IF(B1=7,"7","")))))))&IF(B1=8,"8",IF(B1=9,"9","")))
Thanks for the reply, I need to link a product code to a product. I would normally would use nested if functons in excel, however excel only allows for seven. If the user selects 1/2 Reg from cell A2, then I need GB4080 to come up in cell B2. I can do this with macros but I'm trying to make it automatic instead of having the user call the macro through a button, ect....Thanks again, Leo...