R
ryguy7272
The Microsoft Access database engine could not find the object
‘TransposedSheet$RyanRange’. Make sure the object exists and that you spell
it and spell the path name correctly.
Here is the code that produces the error:
Function ImportFctn()
On Error GoTo ImportRVP_Err
DoCmd.SetWarnings False
DoCmd.RunSQL ("DELETE * FROM [SharePrices];")
DoCmd.TransferSpreadsheet acImport, 8, "SharePrices", "C:\Documents and
Settings\ThinkPad\Desktop\Historical Stock Prices.xlsm", True,
"TransposedSheet!RyanRange"
DoCmd.SetWarnings True
'DoCmd.CloseForm "frmImport"
ImportRVP_Exit:
Exit Function
ImportRVP_Err:
MsgBox Error$
Resume ImportRVP_Exit
End Function
I’ve never worked with a named ranges (in Excel) before, but I’ve done this
many times with hard-coded ranges.
Can someone please tell me what’s going on here?
Thanks!
Ryan---
‘TransposedSheet$RyanRange’. Make sure the object exists and that you spell
it and spell the path name correctly.
Here is the code that produces the error:
Function ImportFctn()
On Error GoTo ImportRVP_Err
DoCmd.SetWarnings False
DoCmd.RunSQL ("DELETE * FROM [SharePrices];")
DoCmd.TransferSpreadsheet acImport, 8, "SharePrices", "C:\Documents and
Settings\ThinkPad\Desktop\Historical Stock Prices.xlsm", True,
"TransposedSheet!RyanRange"
DoCmd.SetWarnings True
'DoCmd.CloseForm "frmImport"
ImportRVP_Exit:
Exit Function
ImportRVP_Err:
MsgBox Error$
Resume ImportRVP_Exit
End Function
I’ve never worked with a named ranges (in Excel) before, but I’ve done this
many times with hard-coded ranges.
Can someone please tell me what’s going on here?
Thanks!
Ryan---