View Single Post
 
Old 03-22-2012, 06:53 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,384
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote