Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to set up a worksheet, I want to be able to put in a file name in
a cell and then have a macro look at that and open the file |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Type in the full path and file name in cell A1 and run the macro. eg:
C:\test.xls Sub Macro() Workbooks.Open CStr(Range("a1")) End Sub If this post helps click Yes --------------- Jacob Skaria "Scott" wrote: I am trying to set up a worksheet, I want to be able to put in a file name in a cell and then have a macro look at that and open the file |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If it is not the active worksheet; you can mention the sheet name as well as
below Sub Macro() Workbooks.Open Cstr(Activeworkbook.Sheets("Sheet3").Range("a1")) End Sub If you are new to macros.. --Set the Security level to low/medium in (Tools|Macro|Security). --From workbook launch VBE using short-key Alt+F11. --From menu 'Insert' a module and paste the below code. --Get back to Workbook. --Run macro from Tools|Macro|Run <selected macro() -- If this post helps click Yes --------------- Jacob Skaria "Jacob Skaria" wrote: Type in the full path and file name in cell A1 and run the macro. eg: C:\test.xls Sub Macro() Workbooks.Open CStr(Range("a1")) End Sub If this post helps click Yes --------------- Jacob Skaria "Scott" wrote: I am trying to set up a worksheet, I want to be able to put in a file name in a cell and then have a macro look at that and open the file |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
opening a file in Excel starts application but dose not open file | Excel Discussion (Misc queries) | |||
Opening file in Excel 2003 opens multipule instances of same file | Excel Discussion (Misc queries) | |||
Need to insert file modified date of Excel spreadsheet in a cell | Excel Discussion (Misc queries) | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) | |||
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. | Charts and Charting in Excel |