try to use
Dim WithEvents oIE As InternetExplorer
instead of the simple Dim
Greetings
Achim Reichel, Gernany