vb Code:
  1. Private Sub Workbook_Open()
  2. application.ontime Now + TimeValue("00:00:15"),  "Switch"
  3. End Sub
What is wrong with my code?
looks like your code runs before the workbook is showing, so various instructions can not work, before workbook showing,
change the timevalue to suit