makeitwork09
Technical User
My work laptop was recently replaced. The new laptop uses Windows 7. The old laptop used XP. Both laptops use Excel 2007.
Today when I went to execute a Macro that was created on the old laptop and that ran without an issue.
The bold line below is where a receive the "Method or data member not found" error. What could be causing this?
Thanks
Today when I went to execute a Macro that was created on the old laptop and that ran without an issue.
The bold line below is where a receive the "Method or data member not found" error. What could be causing this?
Code:
'make sure data is returned
If Not rsData.EOF Then
' Add headers to the worksheet.
With ThisWorkbook.Sheets("SFP Data Dump").Range("A1")
For Each objField In rsData.Fields
[b][COLOR=#EF2929].Offset(0, lOffset).Value = objField.Name[/color][/b]
lOffset = lOffset + 1
Next objField
.Resize(1, rsData.Fields.Count).Font.Bold = True
End With
Thanks