Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
opening a file from a cell reference
I think this should be quite straight forward.
I would like to open a text file based on a cell reference i.e. "example.txt" in cell A1. Thanks Simon |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
opening a file from a cell reference
Try
Worksheets(Range("a1").value).activate -- caroline " wrote: I think this should be quite straight forward. I would like to open a text file based on a cell reference i.e. "example.txt" in cell A1. Thanks Simon |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
opening a file from a cell reference
Hello Simon
Pretty straightforward, yes, provided info in A1 comporises of the full path and name of the file. eg: Sub OpenFileNameFromCell() With Worksheets("Sheet1") If .[A1] < "" Then Workbooks.OpenText .[A1] End If: End With End Sub HTH Cordially Pascal a écrit dans le message de news: ... I think this should be quite straight forward. I would like to open a text file based on a cell reference i.e. "example.txt" in cell A1. Thanks Simon |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do i set up opening a file from a cell in excel spreadsheet | Excel Discussion (Misc queries) | |||
Linking to another file using file reference typed cell | Excel Worksheet Functions | |||
Opening a file from a cell value | Excel Programming | |||
Extra reference after opening a file | Excel Programming | |||
How? to go to cell when opening file | Excel Programming |