Jump to content

Recommended Posts


Posted

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 check

if 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.ClearContents
end if

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...