Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i am sorry, the code in the original post is not correct, it should be this:
Function GetValuesFromAClosedWorkbook(fPath As String, _ fName As String, sName, cellRange As String) With ActiveSheet.Range(cellRange) .FormulaArray = "='" & fPath & "\[" & fName & "]" _ & sName & "'!" & cellRange .Value = .Value End With End Function Sub test1() GetValuesFromAClosedWorkbook "E:", "Book1.xls", "Sheet1", "A4:J4" End Sub sorry for the confusion. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ron de Bruin posted this in response to your previous post:
Maybe this http://www.rondebruin.nl/copy7.htm But for a whole sheet I think you can better open the workbook and copy the sheet to your workbook -- Regards, Tom Ogilvy "edluver" wrote: i am sorry, the code in the original post is not correct, it should be this: Function GetValuesFromAClosedWorkbook(fPath As String, _ fName As String, sName, cellRange As String) With ActiveSheet.Range(cellRange) .FormulaArray = "='" & fPath & "\[" & fName & "]" _ & sName & "'!" & cellRange .Value = .Value End With End Function Sub test1() GetValuesFromAClosedWorkbook "E:", "Book1.xls", "Sheet1", "A4:J4" End Sub sorry for the confusion. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pulling Information from different workbook pages | New Users to Excel | |||
Pulling cell information from one workbook to another | Excel Worksheet Functions | |||
pulling information from a closed workbook | Excel Programming | |||
Reading information from a closed workbook | Excel Programming | |||
Accessing Closed Workbook Information | Excel Programming |