ASKER
Set CurrXLS = Xl.Workbooks.Open(f)
Xl.Visible = True
Dim I As Integer
With CurrXLS
For I = 1 To 30
rng = "A" & I
MsgBox I & " - " & Range(rng)
Next I
When rng = "A14", the value in the spreadsheet is "Program Manager", but the VBA returns "Consultant", which does not exist anywhere in the sheet. When rng = "B31", the value in the sheet is null, but the VBA returns "26,500", which also does not exist anywhere in the sheet.With Sheets("Sheet1")
' this is just one line of what could be a whole block of code that uses values from Sheet1
MyVar = .Range("A1").Value
End With
Range("A1").Value
ASKER
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
TRUSTED BY
Could you send part of the code where the problem is?
Regards