Hi everyone,
I copied a handful of functions to get data from a group of Excel workbooks in a directory I defined in the code. I'm not really good with VBA so I'm stumped pretty easily when something like this happens. Below is the code snippet.
The "ADODB.Recordset" is what is highlighted when the error occurs. Any help is appreciated.
Thanks,
Nate
I copied a handful of functions to get data from a group of Excel workbooks in a directory I defined in the code. I'm not really good with VBA so I'm stumped pretty easily when something like this happens. Below is the code snippet.
Code:
Public Sub GetData(SourceFile As Variant, SourceSheet As String, _
sourceRange As String, TargetRange As Range, HeaderRow As Boolean)
' Changed on 20-Oct-2005
Dim rsData As ADODB.Recordset
Dim szConnect As String
Dim szSQL As String
Dim lCount As Long
The "ADODB.Recordset" is what is highlighted when the error occurs. Any help is appreciated.
Thanks,
Nate