Results 1 to 14 of 14

Macro To Update < 1 to 0

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Macro To Update < 1 to 0

    I need a macro that will if the Value of the cell is < 1 update that cell to 0. I tried using the below, and it didn't work
    ub ResetAll()
    Dim myRng As Range, c As Range
    Set myRng = Sheets("Sheet1").Range("D73:D83")
    For Each c In myRng
    If c.Value > 1 AND c.Value < 0 Then
    c.Value = 0
    End If
    Next
    End Sub
    Last edited by jo15765; 02-28-2012 at 09:58 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1