I have a 2 excels. I can’t use read range activities because data is too big. I have a formula but, I don’t know how to implement this formula within Excel Application Scope Write Cell.
=IFERROR(VLOOKUP(AP2;‘1SDR 2021 PL ÜRÜN LİSTESİ (BARKOD10) DÜN.xlsx’!$A:$AJ;36;0);“E”)
1SDR 2021 PL ÜRÜN LİSTESİ (BARKOD10) DÜN.xlsx: My second excel.
Hi Kalpesh! Thanks your advice but it gives me an error like this:
Write Cell: The write operation failed, because one of the following reasons:
► The data you want to write “=IFERROR(VLOOKUP(AP2,[C:\Users\dev\Desktop\1SDR 2021 PL ÜRÜN LİSTESİ (BARKOD10) DÜN.xlsx]1SDR 2021 PL ÜRÜN LİSTESİ (BARK!$A:$AJ,36,FALSE),“NOT FOUND”)” has a wrong format;
► Excel is busy or you are currently editing a cell;
► If your data is a formula, make sure you use comma as parameters separator;
► During the write operation make sure no dialog windows are opened.
Check this below Vlookup formula its working for me, "=IFERROR(VLOOKUP(AP2,'C:\Users\....\Downloads\1SDR 2021 PL ÜRÜN LİSTESİ (BARKOD10) DÜN.xlsx'!$A:$AJ,36,FALSE),""Not Found"")"
"=IFERROR(VLOOKUP(AP2,'C:\Users\....\Downloads\1SDR 2021 PL ÜRÜN LİSTESİ (BARKOD10) DÜN.xlsx'!$A:$AJ,36,FALSE),""E"")"
Dim xlApp As Microsoft.Office.Interop.Excel.Application = New Microsoft.Office.Interop.Excel.ApplicationClass
Try
Dim xlWorkbook As Microsoft.Office.Interop.Excel.Workbook = xlApp.Workbooks.Open(Path)
Dim xlWorksheet As Microsoft.Office.Interop.Excel.Worksheet
xlWorksheet = CType(xlWorkbook.Sheets(sheetName),Microsoft.Office.Interop.Excel.Worksheet)
xlWorksheet.Activate()
Dim RowsCount As Int32 = xlWorksheet.UsedRange.Rows.Count
xlWorksheet.Range(Range+RowsCount.ToString).Formula=ExcelFormula
xlWorkbook.Save
xlWorkbook.Close
Catch ex As Exception
Throw ex
Finally
xlApp.Quit
End Try
I used invoke code activity with VB.net code . You can find my arguments below: