Hello,
I don't know if anyone can help. I am trying to see the values of the cell when looping, but it is on showing the value of the first cell only. Can you guide me on what I am doing wrong? Thanks in advance.
Code below
'Convert Column F to corresponding name in colmn A
xlSource.Activate()
xlSrcSheet = xlSource.Worksheets("sheet1")
xlSrcRange = xlSrcSheet.Range("A1")
'xlSrcRange.Select()
For i = 1 To xlSrcSheet.UsedRange.Rows.Count
xlSrcRange.Offset(i, 0).Select()
'code goes here
xlSrcRange.Select()
Debug.Print(xlSrcRange.Value.ToString)
Debug.Print(xlSrcRange.Cells.Value.ToString)
NexT
Bookmarks