1. Gravando
    1. Movimento Relativo
      1. Botão
        1. Referência Relativa
  2. Editando
    1. Editor
      1. Tools > Macro > Visual Basic Editor
    2. Depurar
      1. Passo-a-passo
        1. Debug > Step Into
      2. Ponto de Interrupção
        1. Debug > Toggle Breakpoint
  3. Programando
    1. Inserir
      1. Módulo
        1. Insert > Module
      2. Comentário
        1. '
    2. Excluir
      1. Módulo
        1. File > Remove Módulo xx
  4. Objetos
    1. Application
      1. Sintaxe
        1. Application.XXX
          1. =XXX
      2. Propriedade
        1. Caption
          1. = "Controle de Vendas"
          2. = Empty
          3. Sem argumento, captura o título
        2. ActiveCell
          1. ActiveCell.value
          2. = 45
        3. ActiveWindow
          1. = "Mês de Janeiro"
        4. ScreenUpdating
          1. = False
        5. DisplayAlerts
          1. = False
        6. EnableCancelKey
          1. = x1Disabled
        7. DataEntryMode
          1. =x1Strict
        8. WindowState
          1. =x1Maximized
        9. Dialogs
          1. Application.Dialogs(Nome da Caixa).show
          2. x1DialogFormatFont
          3. x1DialogPatterns
      3. Método
        1. Quit
        2. Calculate
        3. Error
          1. On Error goto X
        4. Atribuir Teclas
          1. OnKey(Key,Procedimento)
          2. OnKey "{F8}" , "Cadastrar"
    2. Workbooks
      1. Sintaxe
        1. Workbooks("XXX.xls").XXX
      2. Propriedade
        1. Name
          1. ActiveWorkbook.name
        2. Fullname
        3. Saved
        4. Itens Janela
          1. DisplayGridlines
          2. DisplayOutline
          3. DisplayHorizontalScrollbar
          4. DisplayVerticalScrollbar
          5. DisplayWorkbookTabs
          6. DisplayAutomaticPageBreaks
          7. DisplayStatusBar
      3. Método
        1. Close
          1. SaveChanges
          2. FileName
          3. RouteWorkbook
        2. Open
          1. Workbooks.Open Filename:="C:\Teste.xls", password:="Segredo"
        3. Save
        4. Protect
          1. Password
          2. Structure
          3. Windows
        5. Unprotect
          1. Password
    3. Worksheets
      1. Sintaxe
        1. Worksheets("XXX.xls").XXX
      2. Propriedade
        1. Count
        2. Visible
          1. = False
          2. = True
        3. ScrollArea
          1. = "A1:J10"
        4. EnableSelection
          1. = x1NoSelection
          2. = x1NoRestrictions
          3. = x1UnlockedCells
        5. Selection
        6. Offset
          1. Offset(0,-2)
        7. End
          1. End(Direção)
          2. x1Up
          3. x1Down
          4. x1ToLeft
          5. x1ToRight
        8. ActiveSheet
        9. Row
          1. ActiveCell = ActiveCell.Row
          2. Row("2:4").Insert
          3. RowHeight = xx
        10. Column
          1. ActiveCell = ActiveCell.Column
          2. Columns.Delete
          3. ColumnWidth = xx
        11. EntireRow
          1. Selection.EntireRow.Insert
        12. EntireColumn
          1. Selection.EntireColumn.Insert
      3. Método
        1. Add
          1. Worksheets.Add Worksheets("teste"), , 2
          2. Before
          3. After
          4. Count
          5. Type
          6. x1WordSheet
          7. x1Excel4MacroSheet
        2. Delete
        3. Copy
          1. Before
          2. After
        4. Move
          1. Before
          2. After
        5. Select
        6. Protect
          1. Password
          2. DrawingObjects
          3. Contents
          4. Scenarios
          5. UserInterfaceOnly
        7. Unprotect
    4. Range
      1. Sintaxe
        1. Range("XXX:YYY").XXX
      2. Propriedade
        1. Value
          1. = "País"
          2. Range("Dados,Valores").Value = "17"
        2. Row
        3. Column
        4. Name
          1. ="Valores"
        5. Font
          1. Range(Cells(VarLinha,VarColuna), ActiveCell).Font.ColorIndex = 3
          2. Name
          3. FontStyle
          4. Bold
          5. Italic
          6. Size
          7. Strikethrough
          8. Superscript
          9. Subscript
          10. Underline
          11. x1UnderlineStyleNone
          12. x1UnderlineStyleSingle
          13. x1UnderlineStyleSingleAccounting
          14. x1UnderlineStyleDouble
          15. x1UnderlineStyleDoubleAccounting
          16. x1UnderlineStyleNone
        6. Interior
          1. Range("A1").Interior.ColorIndex = 15
        7. ColorIndex
          1. <html><img src="../../My Pictures/Paleta de Cores.JPG">
          2. = Número_Paleta_Cores
        8. Alignment
          1. HorizontalAlignment
          2. x1General
          3. x1Left
          4. x1Right
          5. x1Fill
          6. x1Justify
          7. x1CenterAcrossSelection
          8. VerticalAlignment
          9. x1Bottom
          10. x1Top
          11. x1Center
          12. x1Justify
          13. WrapText
          14. = True
          15. = False
          16. Orientation
          17. - 90 ... + 90
          18. ShrinkToFit
          19. = True
          20. = False
        9. Borders
          1. Index
          2. Sintaxe
          3. Borders(xx)
          4. x1DiagonalDown
          5. x1DiagonalUp
          6. x1EdgeLeft
          7. x1EdgeRight
          8. x1EdgeTop
          9. x1EdgeBottom
          10. x1InsideVertical
          11. x1InsideHorizontal
          12. LineStyle
          13. x1Continuous
          14. x1Dash
          15. x1DashDot
          16. x1DashDotDot
          17. x1Dot
          18. x1Double
          19. x1SlantDashDot
          20. x1LineStyleNone
          21. x1None
          22. Weight
          23. x1HairLine
          24. x1Thin
          25. x1Medium
          26. x1Thick
        10. BorderAround
          1. (LineStyle, Weight, ColorIndex, Color)
        11. NumberFormat
          1. Sequência
          2. Número Positivo; Número Negativo; Zero; Texto
          3. = "#,##0.00; (#,##0.00)"
          4. = "dd - dddd/mmmm/yyyy"
          5. = "General"
        12. MergeCells
          1. = True
          2. = False
        13. Cells
          1. Cells(Linha,Coluna).XXX
      3. Método
        1. Select
          1. Range("D5").Range("A1:C1").Select
        2. Copy
          1. Range("B2,ActiveCell:E14").copy Range ("G7")
        3. Cut
        4. Clear
        5. Clear Contents
        6. Delete
          1. (x1ShiftUp)
          2. (x1ShiftToLeft)
        7. Insert
          1. (x1ShiftDown)
          2. (x1ShiftToRight)
        8. Sort
          1. Sort(Key1:=Range("A1"), Order1:=x1Ascending, ...)
          2. Key1
          3. Order1
          4. x1Ascending
          5. x1Descending
          6. Key2
          7. Type
          8. Order2
          9. x1Ascending
          10. x1Descending
          11. Key3
          12. Order3
          13. x1Ascending
          14. x1Descending
          15. Header
          16. x1Yes
          17. x1No
          18. x1Guess
          19. OrderCustom
          20. MatchCase
          21. True
          22. False
          23. Orientation
          24. x1TopToBottom
          25. x1LeftToRight
          26. SortMethod
          27. x1Syllbary
          28. x1CodePage
  5. Variáveis
    1. Sintaxe
      1. Declaração
        1. Dim Nome_Cliente as String
      2. Utilização
        1. variável_X = inputbox "teste"
    2. Instrução
      1. Dim
      2. Private
      3. Public
      4. Set
        1. Variável_x = Range("A1")
        2. Variável_x = Nothing
    3. Tipos
      1. Byte
      2. Boolean
      3. Integer
      4. Long
      5. Single
      6. Double
      7. Currency
      8. Decimal
      9. Date
      10. String
      11. Variant
      12. Object
        1. Utilizar Set em seguida
      13. Definido pelo Usuário
    4. Requerer Declaração
      1. Tools > Options > Editor
        1. Require Declaration Variable
  6. Proteção do Projeto
    1. Ferramentas > Propriedades de VBA Project > Proteção
      1. Bloquear projeto para exibição
  7. Erros
    1. Depurar
      1. F8
      2. Variável
        1. Verificar Valor
          1. Para o mouse em cima
      3. Adicionar Inspeção de Variáveis
    2. Exibir
      1. Exibir > Depuração Imediata
        1. ? + código de verificação
    3. On Error
      1. GoTo
      2. Resume Next
    4. Err.Number
  8. Barras de Ferramentas
    1. CommandBars.Add Name:="Controle", Position:=msoBarTop
    2. Método
      1. Add
        1. Name
        2. Position
          1. msoBarLeft
          2. msoBarRight
          3. msoBarTop
          4. msoBarBottom
          5. msoBarFloating
          6. msoBarPopUp
        3. MenuBar
          1. True
          2. False
        4. Temporary
          1. True
          2. False
      2. Visible
        1. True
        2. False
      3. Controls
        1. Add
          1. Type
          2. msoControlButton
          3. msoControlEdit
          4. msoControlDropdown
          5. msoControlComboBox
          6. msoControlPopup
          7. ID
          8. 2949
          9. 2950
          10. Parameter
          11. Before
          12. Temporary
          13. True
          14. False
        2. Caption
        3. OnAction
        4. Enabled
          1. True
          2. False
        5. Style
          1. msoButtonCaption
        6. Delete
      4. Delete
      5. Reset
      6. Protection
        1. msoBarNoCustomize
        2. msoBarNoResize
        3. msoBarNoMove
        4. msoBarNoChangeVisible
        5. msoBarNoChangeDock
        6. msoBarNoVerticalDock
        7. msoBarNoHorizontalDock
        8. msoBarNoProtection
      7. Count
      8. BuiltIn
        1. True
        2. False
      9. Enabled
        1. True
        2. False
      10. Name
  9. Auto Macros
    1. Sub Auto_Open ( )
    2. Sub Auto_Close ( )
    3. Não Executar
      1. Pressionar SHIFT
    4. Eventos
      1. Planilha
        1. Activate
        2. Deactivate
        3. Change
        4. BeforeDoubleClick
        5. BeforeRightClick
        6. Calculate
        7. FollowHyperLink
        8. SelectionChange
      2. Pasta Trabalho
        1. BeforeClose
        2. Open
        3. BeforePrint
        4. BeforeSave
        5. NewSheet
        6. SheetBeforeDoubleClick
        7. SheetBeforeRightClick
        8. SheetCalculate
        9. SheetChange
        10. SheetDeactivate
        11. SheetFollowHyperlink
        12. SheetSelectionChange
        13. WindowActivate
        14. WindowDeactivate
        15. WindowResize
  10. Registros
  11. Formulários
    1. Insert > UserForm
    2. Propriedades
      1. Name
      2. Accelerator
      3. AutoSize
      4. AutoTab
      5. AutoWordSelect
      6. BackColor
      7. BackStyle
      8. BorderColor
      9. BorderStyle
      10. BoundColumn
      11. Cancel
      12. Caption
      13. ColumnCount
      14. ControlSource
      15. ControlTypeText
      16. Default
      17. Enabled
      18. Font
      19. ForeColor
      20. Height
      21. HideSelection
      22. IntegralHeight
      23. Left
      24. ListRows
      25. Locked
      26. MatchEntry
      27. MatchRequired
      28. Max
      29. MaxLenght
      30. Min
      31. MouseIcon
      32. MousePointer
      33. MultiLine
      34. PasswordChar
      35. Picture
      36. Source
      37. ScrollBars
      38. SmallChange
      39. SpecialEffect
      40. Style
      41. TabIndex
      42. TabKeyBehavior
      43. TabStop
      44. Text
      45. TextAlign
      46. TextColumn
      47. Top
      48. Visible
      49. Width
      50. WordWrap
    3. Ferramentas
      1. Barra
        1. Exibir > Barras de Ferramentas > UserForm
        2. Alinhamento
        3. Centralização
        4. Simetria
      2. Caixa
        1. View > ToolBox
        2. Controles
          1. Label
          2. lbl
          3. TextBox
          4. txt
          5. ComBox
          6. cmb
          7. ListBox
          8. lst
          9. CheckBox
          10. chk
          11. OptionButton
          12. opt
          13. Frame
          14. fram
          15. CommandButton
          16. cmd
          17. TabStrip
          18. tst
          19. Page
          20. pge
          21. ScrollBar
          22. scr
          23. SpinButton
          24. spi
          25. Image
          26. img
    4. Código
      1. Eventos
        1. AfterUpdate
        2. BeforeDragOver
        3. BeforeDropOrPaste
        4. BeforeUpdate
        5. Change
        6. Click
        7. DblClick
        8. DropButtonClick
        9. Enter
        10. Exit
        11. Initialize
        12. KeyDown
        13. KeyUp
        14. Layout
        15. MouseMove
        16. Resize
        17. SpinUp
        18. SpinDown
        19. Zoom
      2. Intruções
        1. Unload
          1. Unload Me
    5. Tabulação
      1. Exibir > Ordem de Tabulação
    6. Macro
      1. "frmTeste".show
  12. Funções
    1. InputBox
      1. vbCrLf
    2. MsgBox
      1. Botões
        1. vbOKOnly
        2. vbOKCancel
        3. vbAbortRetryIgnore
        4. vbYesNoCancel
        5. vbYesNo
        6. vbRetryCancel
      2. Ícones
        1. vbCritical
        2. vbQuestion
        3. vbExclamation
        4. vbInformation
      3. Padrão
        1. vbDefaultButton1
        2. vbDefaultButton2
        3. vbDefaultButton3
        4. vbDefaultButton4
      4. Janela Restrita
        1. vbApplicationModal
        2. vbSystemModal
    3. Matemáticas
      1. Abs
      2. Atn
      3. Cos
      4. Exp
      5. Fix
      6. Int
      7. Log
      8. Rnd
      9. Sgn
      10. Sin
      11. Sqr
      12. Tan
    4. Financeiras
      1. Rate
        1. PV(nper,pmt,pv[,fv][,Type],[guess])
      2. Nper
        1. PV(Rate,pmt,pv[,fv][,Type])
      3. Pmt
        1. PV(Rate,nper,pv[,fv][,Type])
      4. Fv
        1. PV(Rate,nper,pmt[,fv][,Type])
      5. Pv
        1. PV(Rate,nper,pmt[,fv][,Type])
      6. Type
    5. Data e Hora
      1. Date
      2. Day
      3. Month
      4. Year
      5. Now
      6. DataSerial
      7. DataValue
      8. Weekday
      9. WeekdayName
      10. MonthName
      11. Hour
      12. Minute
      13. Second
      14. Time
      15. Timer
      16. TimeValue
      17. TimeSerial
    6. Strings
      1. Left
      2. Right
      3. Mid
      4. Ucase
      5. Lcase
      6. Len
      7. Space
      8. Trim
      9. LTrim
      10. RTrim
      11. StrConv
      12. StrReverse
      13. String
    7. Conversão
      1. CBool
      2. CByte
      3. CCur
      4. CDate
      5. CDbl
      6. CDec
      7. CInt
      8. CLng
      9. CStr
      10. CSng
      11. CVar
    8. Planilha
      1. Application.WorksheetFunction.Nome da Função(Argumentos da Função)
    9. Criar
      1. Function NomeFunção (Argumento1 As Tipo, Argumento2 As Tipo) As Tipo)
      2. Local
        1. Assistente de Função > User Defined
    10. Números
      1. Formatação
        1. Format(Expressão,formato,Firstdayofweek,Firstweekofyear)
  13. Operadores
    1. Aritméticos
      1. ^
      2. *
      3. Divisão
        1. /
        2. \
          1. Retorna Inteiro
        3. Mod
          1. Retorna Resto
      4. +
      5. -
    2. Comparação
      1. <
      2. <=
      3. >
      4. >=
      5. =
      6. <>
      7. Is
      8. Like
    3. Lógico
      1. And
      2. Or
      3. Not
      4. Eqv
      5. Imp
      6. Xor
    4. Concatenação
      1. &
      2. +
  14. Estruturas
    1. Decisão
      1. IF
        1. If condição Then Instruções End If
        2. If condição Then Instrução1 : Instrução2 : Instrução3 ...
        3. If Condição Then Instruções para a condição verdadeira Else Instruções para a condição false End If
        4. If Condição Then Instruções para a condição verdadeira Else If Condição Then Instruções para If falso e Elseif verdadeiro Else Instruções para as condições anteriores Falsas End If
        5. If condição then Instruções para a condição verdadeira If Condição Then Instruções para a condição verdadeira End If End If
        6. If Condição And Condição 2 And Condição 3 ... Then Instruções caso todas as condições sejam verdadeiras Else Instruções caso uma ou mais condições sejam falsas End If
        7. If Condição1 Or Condição2 Or Condição3 ... Then Instruções caso uma ou mais condições sejam verdadeiras Else Instruções caso todas as condições sejam falsas End If
      2. Select Case
        1. Select Case Expressão Case Expressão1 Instruções1 Case Expressão2 Instruções2 Case Else Instruções Else End Select
    2. Repetição
      1. With
        1. With Selection.Font .name = "Arial" .Size = 14 End With
      2. While
        1. Do While Condição Instruções Loop
        2. Do Instruções Loop While CondiÇão
        3. While Condição Instruções Wend
        4. Do Until Condição Instruções Loop
        5. Do Instruções Until Loop Condição
      3. For
        1. For Contador = Valor Inicial To Valor Final Step Instruções Next
        2. For Each Elemento In Group Instruções Next