Hi wperry,
Your code appears to be .NET code, not vba. The OpenFileDialog class is not part of the Word vba object model. See:
http://msdn.microsoft.com/en-us/libr...dialog.aspx#Y0
Also, vba doesn't accept variable declarations of the kind you're using.