View Single Post
 
Old 01-17-2014, 11:06 AM
BobBridges's Avatar
BobBridges BobBridges is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

There's a standard dialogue you can use in VBA and VBS. Let's see, I know I've used it in a few programs ... Yes, here it is. There are other ways, but in Excel itself the Application object has a GetOpenFilename method that you can use to present the standard open-file dialogue to the user; your program can set the starting folder, the filter that determines which file extensions will be displayed, all that sort of thing, and when the user has found the right file and clicks on it to indicate "Yes, this is the file I want" the method returns the name of the file back to the program, without opening it. That way the program can do to the file whatever you choose.
Reply With Quote