Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default Open file from address in a cell

Let's say that the value of cell A1 was "C:\Work Documents\David's
Folder\Schedule.xls" and I wanted to click a button to run a macro that
open's the file referenced in A1. Is that possible and if so how can it be
done?

The value of A1 would change continually so the macro could not always
reference "C:\Work Documents\David's Folder\Schedule.xls" for example.

Many thanks.
--
David P.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Open file from address in a cell

Try

Workbooks.Open Filename:=Sheets("Sheet1").Range("A1").Value

Mike

"David P." wrote:

Let's say that the value of cell A1 was "C:\Work Documents\David's
Folder\Schedule.xls" and I wanted to click a button to run a macro that
open's the file referenced in A1. Is that possible and if so how can it be
done?

The value of A1 would change continually so the macro could not always
reference "C:\Work Documents\David's Folder\Schedule.xls" for example.

Many thanks.
--
David P.

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
open file by inputting file name in cell? Roger Abbot Excel Discussion (Misc queries) 1 September 15th 07 02:38 PM
when i try to open the file it show too many different cell forma. too many cell formats Excel Worksheet Functions 1 March 9th 07 11:53 AM
In Excel - Use Windows Explorer instead of File Open to open file KymY Excel Discussion (Misc queries) 1 August 5th 06 09:59 PM
How can I link a pdf file (address) to an Excel cell Wil Excel Discussion (Misc queries) 1 April 28th 06 10:38 AM
insert file address to open graphic kbs93726 Excel Discussion (Misc queries) 1 February 28th 06 06:11 PM


All times are GMT +1. The time now is 05:48 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"