LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Open File based on filename in cell

I am using a combo box / Vlookup to populate a cell -say C3- with file name.
I want to use this to open the selected file.

myFile = Selection.FormulaR1C1
Workbooks.Open Filename:=myFile

However, since 'C3' is a Vlookup formula, the macro tries to open a file
based on the formula rather than the results of the formula.

Is there a way to have 'myFile' be read as the text of the cell contents?

Thanks

TB

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to open most recent file with a particular filename string kwiklearner Excel Discussion (Misc queries) 1 August 23rd 06 01:24 AM
Open file with unknown extra characters at end of filename achidsey Excel Programming 1 October 19th 05 09:21 PM
Open file and print sheets based on data in cell Steph[_6_] Excel Programming 3 August 23rd 05 08:47 PM
Macro to read filename in cell and open new file April Excel Programming 2 July 27th 05 02:49 PM
Why doesn't the File Open list sort into filename order? cycler New Users to Excel 7 July 16th 05 06:44 PM


All times are GMT +1. The time now is 05:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"