Descricao: |
Escola Saberexcel VBA Estudos - Treinamentos com Macros Fórmulas e Funções.
 Esse procedimento do Aplicativo Microsoft Excel VBA, com evento Workbook_SheetsChange, afeta todas as folhas de planilhas e formata os comentarios já inseridos, mudando a cor de fundo para verde, fonte estilo Castellar, somente maiusculas, na cor vermelho e também insere umm shapes formatando o Comentario como um cruz retangular. Essa página é para nos auxiliar na nossa (69º - Video Aulas - Microsoft Excel VBA), '- - - - - - - - - - - - - - - - - - - - - - - - - - - Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Dim Wst As Worksheet, Cmt As Comment
For Each Wst In Worksheets For Each Cmt In Wst.Comments Cmt.Shape.OLEFormat.Object.AutoSize = True ' Para mudar a Cor da Fonte Cmt.Shape.TextFrame.Characters(Pos, Len(Saberexcel)).Font.ColorIndex = 3 'vermelho
With Cmt.Shape.OLEFormat.Object.Font .Name = "castellar" 'mudar a fonte .Size = 10 'mudar o tamano da fonte End With
Cmt.Shape.OLEFormat.Object.ShapeRange.Fill _ .ForeColor.SchemeColor = 42 'indice da cor de fundo
With Cmt .Visible = False .Text Text:="Escola Saberexcel VBA Estudos®:" & Chr(10) & "Treinamentos com Macros, Fórmulas e Funções" .Shape.AutoShapeType = msoShapeCross .Shape.Shadow.Type = msoShadow12 .Shape.Shadow.ForeColor.SchemeColor = 10 .Shape.Shadow.Visible = msoTrue .Shape.ThreeD.Visible = msoFalse End With Next Cmt Next Wst End Sub
 Aprenda tudo sobre planilhas do Aplicativo Microsoft Excel VBA(Visual Basic Application), sozinho, com baixo custo, praticando com os produtos didáticos Escola Saberexcel VBA Estudos® - Treinamentos com Macros, Fórmulas e Funções.

:
|