Hi!
New in the forum, hope you can help me. After several hours of research in internet, I give up to ask you . Also, sorry for my awful english
So, in resume, I have 2 Tables stored in listobjects variables: tbVenta and tbSKU.
- tbVenta has the data of daily sales for 200,000 + SKU. Every row is the sale of a specific day for a specific SKU.
- tbSKU has information regarding those SKU. Every row has the characteristics of a specific SKU.
I basically want to do a VLookUP to add in several rows in tbVenta the information in tbSKU for the SKU in said row,
I could use:But I want to use my listobjects variables as reference, so im using:Please Login or Register to view this content.
The problem is that Im using a For, Next loop to apply the VLookup to every cell, and there’s 200,000+ cells in tbVenta. So it takes ages to complete the process. But, if I simple apply manually “.FormulaR1C1 = "=VLOOKUP()"” to the whole range, it only takes a cumple seconds to evaluate it.Please Login or Register to view this content.
Is there a way to apply “Application.WorksheetFunction.VLookup()” to the whole range of tbVenta.ListColumn(“Canal”)
As you would see in the code, Im also interested in deleting the row if the VLookup returns empty. But I know I can do that later in code, im more concerned with the VLookup not taking ages.
Thanks.
Please Login or Register to view this content.
Bookmarks