Excel - compare text from 2 ranges using nested loop vb.net -
After text "itemprop =" text ">
2 am trying to loop excel ranges and workbook in cell one from one to cell in a workbook Comparing text and similar. Text matches, I'm setting the variable equal to the column number from each workbook.
for each cell (MyWB) .sheets ("export") in xl.Workbooks. Range ("D2: J2".) For every C (TempWB) .sheets ("TempExports") in xl.Workbooks, the problem with the range ("D1: J1")
I'm getting my gap insert loop. The second row above is throwing a kind of mismatch, but why? And what can I do to solve it? If I remember correctly that the above syntax works in VBA then I guess it will work on the Net, but apparently this is not the case. Any suggestions? I am using VB.NET with WinForms.
A little more detail here
for each cell (myWB) in xl.Workbooks. Some codes (for "Sheets") are exported ("Export") .Range ("D2 ("TempExports D1: J1") for every C (TempWB) .Sheets in the range ("J2") xl.Workbooks. If c.Text = cell.Text then MyWBColumn = cell. Column tempWBColumn = c.Column GetColumnLetterMyWB (MyWBColumn) GetColumnLetterTempWB (TempWBColumn) xl.Workbooks (MyWB). Sheets ("Export"). Range (column letter mWB & amp; "3:" and GetColumnLetterMyWB & amp; (RowCount + 1)) value = _xl.Workbooks (TempWB) .Sheets ("TempExports") range. (TempWBColumnLetter & amp; "2:" & ColumnLetterTempWB & amp; (rOWCOUNT)) Price End then Next Next
Comments
Post a Comment