I added Private before the Declare Function GetDesktopWindow Lib "user32" () As Long

But, I still get the same error. What should I look for next? I don't need to use a form for this project. I aim to just have the screen saver activate on startup.

------------------
Thanks,
MiDaWe