Jump to content
Fórum Script Brasil
  • 0

Totalizador de vazão



1 answer to this question

Recommended Posts

  • 0

Supondo que a célula A1 tem o valor oscilante e a célula B1 vai acumular esses valores, eu iria usar o botão direito na guia da planilha, e selecionaria Exibir Código, e lá escreveria o seguinte código


Private Sub Worksheet_Change(ByVal Target As Range)
    Set KeyCells = Range("A1")
    If Not Application.Intersect(KeyCells, Range(Target.Address)) _
           Is Nothing Then
        Range("B1").Value = Range("B1").Value + Range("A1").Value
    End If
End Sub


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...