S
sjw
Need help with the code below.
If I substitute
CellContents = Worksheets("Data for Sim RT").[B100].Text
It works!
Sub TestCellVariable()
Dim CellContents As Variant '...Cell contents
Dim lngCellNum As Long '...Row number
Dim strCell As Variant
lngCellNum = 100
strCell = "B" & lngCellNum
CellContents = Worksheets("Data for Sim RT").[strCell].Text
MsgBox "zzz Cell Contents is " & CellContents
End Sub
If I substitute
CellContents = Worksheets("Data for Sim RT").[B100].Text
It works!
Sub TestCellVariable()
Dim CellContents As Variant '...Cell contents
Dim lngCellNum As Long '...Row number
Dim strCell As Variant
lngCellNum = 100
strCell = "B" & lngCellNum
CellContents = Worksheets("Data for Sim RT").[strCell].Text
MsgBox "zzz Cell Contents is " & CellContents
End Sub