ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if a cell contains certain text, cut and paste to another sheet (https://www.excelbanter.com/excel-worksheet-functions/20409-if-cell-contains-certain-text-cut-paste-another-sheet.html)

Mili

if a cell contains certain text, cut and paste to another sheet
 
Wanting to include this within a macro, so that if a particular cell has "N"
in the cell that the whole row will be cut and paste in to another sheet
within the workbook.

Myrna Larson

Since you're not specific WRT the cell location or the other sheet name...

If Range("A1").Value = "N" Then
Range("A1").EntireRow.Copy Worksheets("Sheet2").Range("A12")
End If


On Sun, 3 Apr 2005 19:41:01 -0700, "Mili"
wrote:

Wanting to include this within a macro, so that if a particular cell has "N"
in the cell that the whole row will be cut and paste in to another sheet
within the workbook.




All times are GMT +1. The time now is 07:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com