Need values for all columns

laxmananm

Board Regular
Joined
Mar 1, 2014
Messages
104
I have one sheet which has some values and i have some values which has some datas in another sheet.Now i have written some macros to paste the
values from workbook 1 and 2 to workbook 3.It is working fine for me.But it produce the results for First in the 3rd sheet.Now i want to get all the colums results for my code
Kindlu help me.

Code:
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+l


 Dim iColN As Integer
    Dim iColI As Integer
    Sheets("SIT1").Select
    Columns("B:B").Select
    Selection.Copy
    Sheets("Result").Select
    Columns("A:A").Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    Sheets("PROD1").Select
    Columns("B:B").Select
    Selection.Copy
    Sheets("Result").Select
    Columns("B:B").Select
     
    ActiveSheet.Paste
    Range("C2").Select
    Application.CutCopyMode = False
    lRow = Range("A30000").End(xlUp).Row
    
 
 
    ActiveCell.FormulaR1C1 = "=EXACT(RC[-1],RC[-2])"
    Range("D2").Select
     ActiveCell.FormulaR1C1 = _
        "=IF(ISERROR(VLOOKUP(RC[-2],C[-3],1,FALSE)),""Not Found"",""Found"")"
    Range("D3").Select
End Sub
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top