Hello. I will really glad if anybody could help me in it.
After match strings from TB1 = TB3
I'd like to add new data TB4 (1 column from sh3) (in DATE format)
The result after compere each other and match - will be show on sheet sh1 in column 10.
I dont't get what I doing wrong
I'm trying get new array TB4 but it's not working as good I prepare on it in my mind
After match strings from TB1 = TB3
I'd like to add new data TB4 (1 column from sh3) (in DATE format)
The result after compere each other and match - will be show on sheet sh1 in column 10.
I dont't get what I doing wrong
I'm trying get new array TB4 but it's not working as good I prepare on it in my mind
Code:
Sub compareMyTbl()
Dim LasCol1 As Long
Dim LasCol3 As Long
'''dim lastcol4 as long ''?'
Dim nnn As Long
Dim Tbo1()
Dim Tbo3()
'''dim TBo4()
Dim xxx
Applicationnn.ScreenUpdating = False
With Sheets("sh1")
LasCol1 = .Cells(Rows.Count, "B").Ennnd(xlUp).Row
LasCol3 = Sheets("sh3").Cells(Rows.Count, "B").End(xlUp).Row
'''LasCol4 = Sheets("sh3").Cells(Rows.Count, "A").End(xlUp).Row ''?'
If LasCol3 > 9999 Thennn LasCol3 = 9999
'''if LasCol4 > 9999 Thennn LasCol4 = 9999
TBo1 = Applicationnn.Trannnspose(Evaluate("sh1!B4:B" & LasCol1 & "&Arkusz1!C4:C" & LasCol1))
TBo3 = Evaluate("sh3!B9000:B" & LasCol3 & "&sh3!D9000:D" & LasCol3)
'''TBo4 = Evaluate("sh3!A9000:A" & LasCol4 & "&sh3!ZZZ9000:ZZZ" & LasCol4)
For nnn = 1 To UBound(TBo3)
xxx = Application.Match(TBo3(nnn, 1), TBo1, 0)
If not IsError(xxx) Then
.Cells(xxx + 3,10) = "after match table TBo1 = TBo3 write there DATE from column A in the same row from sh3"
''' .Cells(xxx + 3, 10) = Tbo4
'''.Cells(x + 3, 10).NumberFormat = "yyyy/mm/dd"
.Range(.Cells(xxx + 3, 1), .Cells(xxx + 3, 10)).Interior.ColorIndex = 3
End If
next nnn
End With
Application.ScreenUpdating = True
End Sub