Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
From within my excel VBA code I need to open another spreadsheet so am
using OpenFileDialog (unless there is there a better way?) but can't get it to be recognized. What reference do I need to add for the file dialogs? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi
using your method, you can select the file and click the open button. but if that is too much of a hassel, then you would need to hard code the open file into your code ie Workbooks.Open Filename:="C:\your\file\path\thafile.xls" regards FSt1 "MattE" wrote: From within my excel VBA code I need to open another spreadsheet so am using OpenFileDialog (unless there is there a better way?) but can't get it to be recognized. What reference do I need to add for the file dialogs? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the following in which myFileOpen is True if a valid file was selected
and opened, else False. Dim myFileOpen as Boolean myFileOpen = Application.Dialogs(xlDialogOpen).Show -- Regards, Nigel "MattE" wrote in message ... From within my excel VBA code I need to open another spreadsheet so am using OpenFileDialog (unless there is there a better way?) but can't get it to be recognized. What reference do I need to add for the file dialogs? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Nesting a sheet name reference within a cell reference??? | Excel Discussion (Misc queries) | |||
Changing sheet reference to cell reference | Excel Worksheet Functions | |||
Column letter reference as number reference | Excel Programming | |||
Formulas that reference cells that reference another cell | Excel Discussion (Misc queries) | |||
View Details in OpenFileDialog | Excel Programming |