Open the Excel workbook. Just to the left of the
FILE menu is a small Excel icon. Right click it and select
VIEW CODE. When the VBA editor opens look for the combobox at the top of the editor that says "General." Change this value to "Workbook" and the Workbook_Open sub should be created automatically for you. This is where you put your code. Instead of using multiple IF statements you should use a loop to evaluate each cells until you find the first empty cell that meets your condtions. I can help with the loop but need to know what happens if all cells between D8 and I8 contains values?
Code:
Private Sub Workbook_Open()
If IsEmpty(Range("D8")) Then
Range("D8").Select
Else
Range("E8").Select
End If
End Sub
Regards,
Rollin