Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I am trying to access a cell in a closed worksheet but I get an "out of range" error: Sub import() Dim var as String var = Workbooks("file1.xls").Worksheets("Sheet1").Range( "A2").Value msgbox var End Sub Any ideas? Matt -- mattsva ----------------------------------------------------------------------- mattsvai's Profile: http://www.excelforum.com/member.php...fo&userid=3113 View this thread: http://www.excelforum.com/showthread.php?threadid=50810 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You have received extensive answers in other postings of this question.
-- Regards, Tom Ogilvy "mattsvai" wrote in message ... I am trying to access a cell in a closed worksheet but I get an "out of range" error: Sub import() Dim var as String var = Workbooks("file1.xls").Worksheets("Sheet1").Range( "A2").Value msgbox var End Sub Any ideas? Matts -- mattsvai ------------------------------------------------------------------------ mattsvai's Profile: http://www.excelforum.com/member.php...o&userid=31134 View this thread: http://www.excelforum.com/showthread...hreadid=508104 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reference to cell with external spreadsheet | Excel Worksheet Functions | |||
Using cell value to build external reference | Excel Discussion (Misc queries) | |||
cell data for external reference | Excel Worksheet Functions | |||
Reference external worksheet whose name is in a cell | Excel Worksheet Functions | |||
Using cell value to reference external worksheet? | Excel Worksheet Functions |