nokizorque

Untitled

Nov 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.37 KB | None | 0 0
  1. Private Sub CommandButton1_Click()
  2.     For Each Cell In Range("A1:A4")
  3.         Value = Abs(Cell.Value)
  4.         If Cell.Interior.ColorIndex = 3 Then
  5.             If HAV = "False" Then
  6.                 HAV = Value
  7.             ElseIf Value > HAV Then
  8.                 HAV = Value
  9.             End If
  10.         End If
  11.         Range("A6").Value = HAV
  12.     Next Cell
  13. End Sub
Advertisement
Add Comment
Please, Sign In to add comment