Compare two worksheets using VBA in Microsoft Excel. With the macro below it is possible to compare excel sheets. The result is displayed in a new workbook listing all cell differences. Sub CompareWorksheets (ws1 As Worksheet, ws2 As Worksheet) Dim r As Long, c As Integer Dim lr1 As Long, lr2 As Long, lc1 As Integer, lc2 As Integer Dim maxR As Long, maxC As Integer, cf1 As String, cf2 As String Dim rptWB As Workbook, DiffCount As Long Application.ScreenUpdating = False Application.StatusBar MS Excel 2003: Enter a value in an InputBox and then search for this value in a column and copy row to new sheet for all matching values This Excel tutorial explains how to write a macro to allow a user to enter a value in an inputbox, search for that value in a column, and copy matching rows to a new sheet in Excel 2003 and older versions (with screenshots and step-by-step instructions). Note: the Windows clipboard holds only the last copied data. Pasting Cells, Columns or Rows Select the cell(s), column(s) or row(s) into which you want to paste previously copied data (i.e., from the Windows clipboard). Note: the selected area must be the same size as the data you will be pasting. Right-click on any cell in the highlighted area. You can also switch to formula view, which will display all of the formulas in the spreadsheet. This can help you understand how the spreadsheet is put together and where the formulas are stored. Just hold the Ctrl key and press ` (grave accent). The grave accent key is usually located in the upper-left corner of the keyboard.