Copy values from one sheet to another - Excel VBA -


i'm trying paste values 1 sheet (like vlookup) based on column. both sheets have same header. pasting or typing value in 2nd column fetch relevant data 2nd sheet , paste in 1st sheet , below code doesn't seem work.

for = 2 row   if ws.cells(i, 2).text <> ""      j = 2 row1        if instr(1, ws1.cells(j, 2).text, ws.cells(i, 2).text, vbtextcompare) > 0          k = 3 8            ws.cells(i, k).value = ws1.cells(j, k).value          next k          exit        end if      next j    end if  next 


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -