Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About ExecuteExcel4Macro

Status
Not open for further replies.

feipezi

IS-IT--Management
Aug 10, 2006
316
US
Hi,
Can I get (extract) a Range (multiple cell) using ExecuteExcel4Macro like what I can get by the following function:

Function GetValuesFromAClosedWorkbook(fPath, fName, sName, c_Rng, b_Rng As String)
With ActiveSheet.Range(b_Rng)
.FormulaArray = "='" & fPath & "\[" & fName & "]" & sName & "'!" & c_Rng
.Value = .Value
End With
End Function

I tried but the built-in macro did not work.
Thanks in advance.
John Z.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top