I think what you would need to do is to use a Select-Case statement, along with the InStr function. For example:
strMake = Left(Range("A1").Text, InStr(Range("A1").text, " ") - 1 )
Select Case strMake
Case "Ford"
'load the Ford Form
Case "BMW"
'load the BMW form
Case Else
'give error
End Select
The first part would parse out the first word of cell A1 to get the make of the car.
Hope this helps,
Russell
Can't see how to automate
Thanks for the response,
Seems a good way to extract the part of the text that I want to trigger the form, but I need the relavent form to open as soom as data appears in the trigger cell.
THank you!
Dawn
Re: Can't see how to automate
Dawn,
If you use the code that Russell gave you but put it into the worksheet code module (right click on the worksheet tab, click View Code).
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
strMake = Left(Target.Text, InStr(Target.Text, " ") - 1)
Select Case strMake
Case "Ford"
frmFord.Show
Case "BMW"
frmBMW.Show
Case Else
'give error
End Select
End Sub
HTH,
Dax.