Compile error: User-defined type not defined
Problem:
Macro will not run.
Error:
“Compile error: User-defined type not defined”
Solution:
- Check which line is highlighted. In this case its Dim ie As SHDocVw.InternetExplorer.
- Check what Reference Library needs to be enabled for the highlighted line. In this case Microsoft Internet Controls.
- Go to Tool->References->check Microsoft Internet Controls
