Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
If values in two columns are equal I want to automatically execute a macro
If values in two columns are equal, I want to automatically execute
macro that will move the entire record to another sheet and delete th row that the record was in -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
If values in two columns are equal I want to automatically execute a macro
If cells(rw,col1).value = cells(rw,col2).value then
cells(rw,col1).Entirerow.copy Destination:= _ ws.cells(rw.count,1).end(xlup)(2) cells(rw.col1),Entirerow.delete End if -- Regards, Tom Ogilvy Tom Rinks wrote in message ... If values in two columns are equal, I want to automatically execute a macro that will move the entire record to another sheet and delete the row that the record was in. --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA: Matching cells across columns, and returning equal values | Excel Discussion (Misc queries) | |||
Determining if two columns values are equal/close | Excel Discussion (Misc queries) | |||
Automatically execute a CTRL-ALT-F9 when I open a workbook | Excel Discussion (Misc queries) | |||
Execute Macro automatically after hyperlink | Excel Discussion (Misc queries) | |||
Execute Macro | Excel Discussion (Misc queries) |