I have an Action which I want it to output an ADO recordset from an Excel file. However, I got error "Invalid value. The value assigned the <ReturnExcelRecordSet> parameter must be a Any." when the code hits the line that assign the parameter output with ADO recordset (the last line of code). I set the data type of ReturnExcelRecordSet output parameter as "Any".

Below is my code; please help. Thanks!!
Dim objRSEXcel
Dim ReturnExcelRecordSet
Dim oCon
Dim sql

Dim objConnExcel, ConnecttoExcel
Dim fileLocation, fileName, fileAndLocationString

fileLocation = "c:\"
fileName = "Test.xls"
sql = "Select * from [Global$]"
Set objConnExcel = CreateObject("ADODB.Connection")

fileAndLocaionString = fileLocation & "\" & fileName

objConnExcel.Provider = "Microsoft.Jet.OLEDB.4.0"
objConnExcel.ConnectionString = "Data Source=" & fileAndLocaionString & ";Extended Properties=Excel 8.0;"

Set objRSEXcel = CreateObject("ADODB.Recordset")
objRSEXcel.ActiveConnection = objConnExcel

objRSEXcel.CursorType = 3 'Static cursor.
objRSEXcel.LockType = 2 'Pessimistic Lock.
objRSEXcel.Source = sql
'msgbox objRSEXcel.recordcount
Parameter("ReturnExcelRecordSet") = objRSEXcel