Can someone tell me what I'm doing wrong? I get a compile error saying 'User-defined type not defined' when trying to declare a variable of type spellingsuggestions (word automation).

I can create an instance of the word object and use various other methods/properties of it which all work fine. But as soon as I try to
VB Code:
  1. Dim SpellSuggestions as wdapp.spellingsuggestions
I get the error.

wdApp is created using the code
VB Code:
  1. Dim wdApp As Object
  2. Set wdApp = CreateObject("Word.Application")

I'm fairly new at this automation stuff, so if its a stupid mistake on my part that is glaringly obvious to everyone else, please forgive my ignorance.

Cheers.