Dear All,
I ask for help for the vlookup VBA code, I hereby attach the documents, I ask for a VBA code in column H (PERIOD vba),
Column I (CATEGORY vba), Column J (NAME vba) or what I marked in yellow. I want the results in column H, I, J
to be equal to in columns E, F, G. so that the results have the same status in columns k, L, M.
this is my link : MULTI VLOOKUP IN VBA - R1.xlsm
file
Thanks
roykana
I ask for help for the vlookup VBA code, I hereby attach the documents, I ask for a VBA code in column H (PERIOD vba),
Column I (CATEGORY vba), Column J (NAME vba) or what I marked in yellow. I want the results in column H, I, J
to be equal to in columns E, F, G. so that the results have the same status in columns k, L, M.
this is my link : MULTI VLOOKUP IN VBA - R1.xlsm
file
VBA Code:
Option Explicit
Sub multivlookup()
Application.ScreenUpdating = False
' sort DB sheet on col A
With Sheets("DB")
.Range("C1:F61").Sort Key1:=.Range("C1"), order1:=xlAscending, Header:=xlYes
End With
With Range(Cells(2, 8), Cells(2, 8).End(xlDown))
.FormulaR1C1 = "=IF(VLOOKUP([@DATE],dbperiod,1,true)=[@DATE],VLOOKUP([@DATE],dbperiod,4),"""")"
.Value = .Value
End With
Application.ScreenUpdating = True
End Sub
roykana