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: 1
Default accessing a workbook cell in a different directory


Hello,

Can anyone tell me how i can access a workbook from a differen
directory.

For example

Range("A1").Value
Workbooks("Raoul.xls").Worksheets("Sheet1").Range. ("A1").Value

the above code works fine assuming the two workbooks are in the sam
directory.

However:
Range("A1").Value
Workbooks("c:\temp\Raoul.xls").Worksheets("Sheet1" ).Range("A1").Value

The same code in a different directory does not work? How can i acces
a workbook from a different directory.

Help will be greatly appreciated.
Me

--
meefong
-----------------------------------------------------------------------
meefongh's Profile: http://www.excelforum.com/member.php...fo&userid=1538
View this thread: http://www.excelforum.com/showthread.php?threadid=27004

 
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
Accessing VBA subroutines in another workbook [email protected] Excel Programming 1 October 12th 04 12:07 AM
Accessing workbook info from a different workbook macro Brian Bowman[_3_] Excel Programming 0 September 20th 04 06:09 PM
Accessing workbook info from a different workbook macro Brian Bowman Excel Programming 2 September 16th 04 10:01 PM
Accessing information from second workbook randland Excel Programming 2 August 16th 04 11:29 PM
accessing data from other workbook Tony Excel Programming 4 June 24th 04 12:38 PM


All times are GMT +1. The time now is 04:06 AM.

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"