Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open file with file name from cell


Code:
--------------------

Dim MyPath As String
Dim MyFile As String
'-----------------------
MyPath = ThisWorkbook.Path & "MyFolder\"
MyFile = MyPath & ActiveSheet.Range("MyName").Value
Workbooks.Open FileName:=ActiveSheet.Range(MyFile).Value

--------------------


remove a cell name

Insert/Name/Define ... select name and Delete.


---
Message posted from http://www.ExcelForum.com/

Reply
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
Vista Office 2003 File Open Window @details will only show file n. amb@HKD Excel Discussion (Misc queries) 1 September 3rd 09 01:03 AM
Saved *.csv file gives SYLK file type warning upon Excel 2003 open Tom Excel Discussion (Misc queries) 5 March 19th 08 03:15 PM
open file by inputting file name in cell? Roger Abbot Excel Discussion (Misc queries) 1 September 15th 07 02:38 PM
In Excel - Use Windows Explorer instead of File Open to open file KymY Excel Discussion (Misc queries) 1 August 5th 06 09:59 PM
Office 2003 - "autocomplete" in file | open or file | save no longer works Lanwench [MVP - Exchange] Excel Discussion (Misc queries) 4 January 12th 05 01:35 AM


All times are GMT +1. The time now is 11:48 PM.

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

About Us

"It's about Microsoft Excel"