peterdavies Posted May 8, 2006 Posted May 8, 2006 I need to delete lines from a spreed sheet if the sum of a cell is 0 can any one help?
IcemanND Posted May 8, 2006 Posted May 8, 2006 Excel Macro:'look at the value of the current cell for value of zero. 'If not on the current cell the use range("A1").value, 'where A1 is the cell with the value you wish to checkif activecell.value=0 then'Removes the row from the spreadsheet rows("1:1").select Selection.Delete Shift;=xlUp'Deletes only the contents of the cells in the row rows("2:2").select Selection.ClearContentsend if
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now