Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
Below is my code to get the workbook selected by the user. For some or other reason this dummy can't get the code to open the selected file. I would like to substitute the msgbox with the code to open the file. Any advice would be appreciated. Thanks in advance Sub GetFileExample() Dim fNameAndPath As Variant fNameAndPath = Application.GetOpenFilename _ (FileFilter:="Excel Files (*.XLS), *.XLS", _ Title:="Select File To Be Opened") If fNameAndPath = False Then _ Exit Sub MsgBox fNameAndPath End Sub -- HJN |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open Dialog Box to return Selected File Path and Not Open it. | Excel Programming | |||
Issue with workbook not being selected when form button is clicked | Excel Programming | |||
C# open workbook and suppress Read/Write dialog | Excel Programming | |||
using Windows API Open Dialog/Browse in VBA - center form in scree | Excel Programming |