Reference for Office folder picker

kirkm

Registered User.
Local time
Today, 17:44
Joined
Oct 30, 2008
Messages
1,257
There's a line in Excel I'm trying to use in Access
Set BrowseForFolder= Application.FileDialog(msofiledialogfolderpicker)
But I get Variable not defined.

In Excel its definition says 'Member of Office.MsoFileDialogTypeDo I need to add a reference ? If yes, which?
Thanks
 
Go to VBE, on Tools>Reference, add Microsoft Office Xx. X Object Library.
 
Thank you, all working :)
 

Users who are viewing this thread

Back
Top Bottom