tatendatiffany
Board Regular
- Joined
- Mar 27, 2011
- Messages
- 103
I need to change this part of my code into an array the part in bold into an array containing these 5 different tables. I can do the part of declaring the variable. But i am facing difficulty with make further changes to the rest of the code (c) part of the code. Any suggestions
Code:
[B]for c = 31 to 35
[/B]for r = 2 to 39
if cells (r,c).value <> "" then
Code:
If Cells(r, c).Value <> "" Then
LogStr = LogStr & "------------------------------" & vbCrLf
LogStr = LogStr & " Row " & r & " Col " & c & vbCrLf
LogStr = LogStr & "------------------------------" & vbCrLf
str = Cells(r, c).Value
LogStr = LogStr & str & vbCrLf
rtnVal = getrecordset(str)
LogStr = LogStr & rtnVal & vbCrLf
Cells(r, c - 5).Value = rtnVal
End If
Next r
Next c