Escolar Documentos
Profissional Documentos
Cultura Documentos
o texto Dim moeda As Currency 'esta vriavel do tipo moeda Dim numeros As Integer 'esta vriavel do tipo inteiro Dim numeros As estava vriavel para trabalhar com casas decimais Dim verdadeiro_ou_e As Boolean 'esta vriavel do tipo verdadeiro ou falso 9 aula Exemplo prtico Acresentar um boto e programar o boto com a seguinte linha de comando: Sub Boto1_Clique() Dim x As String x = Range("g1") Range("i1") = x End Sub Aula 18 If Range("h1") = 10 Then Range("i1") = 10 ElseIf Range("h1") < 10 Then Range("i1") = "h1 no dez" End If Private Sub CommandButton1_Click() Select Case Range("h1") Case 10 Range("i1") = 10 Case 20 Range("if") = 20 End Select End Sub Aula 20 Private Sub CommandButton1_Click() Dim I As Integer Dim x As Integer x = Range("i1") For I = 1 To x Range("H" & I) = I Next
End Sub Aula 21 Private Sub CommandButton1_Click() Dim y As Integer y = 1 Do While y <= 10 Range("h" & y) = y y = y + 1
Loop
End Sub