[h=2]just inserted the code and now I get run-time error '9': subscript out of range. any ideas?
Private Sub Workbook_Open()
Select Case ThisWorkbook.Sheets("aiiwwaxexcel0").Range("a3").Value
Case "History"
History_Order_Guide_Without_Pricing2
'macro that runs
Case "ItemBrowse"
Order_Guide_With_Pricing2
'macro that runs
Case Else
End Select
End Sub [/h]
Private Sub Workbook_Open()
Select Case ThisWorkbook.Sheets("aiiwwaxexcel0").Range("a3").Value
Case "History"
History_Order_Guide_Without_Pricing2
'macro that runs
Case "ItemBrowse"
Order_Guide_With_Pricing2
'macro that runs
Case Else
End Select
End Sub [/h]