
Sub Macro2()
'commenti
With Selection.Font
.Name = "Tahoma"
.FontStyle = "Normale"
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.ReadingOrder = xlContext
.Orientation = xlHorizontal
.AutoSize = True
End With
With Selection
.Placement = xlMoveAndSize
.PrintObject = True
End With
End Sub |
Sub Commentiamo()
Dim oCmt As Comment
For Each oCmt In ActiveSheet.Comments
With oCmt
.Visible = True
celltop = .Parent.Top
cellLeft = .Parent.Left
cellWidth = .Parent.Width
.Shape.TextFrame.AutoSize = True
.Shape.Left = cellLeft + cellWidth + 10
.Shape.Top = celltop - 5
With .Shape.TextFrame.Characters.Font
.Name = "Times New Roman"
.Size = 8
.ColorIndex = xlAutomatic
End With
.Shape.Fill.ForeColor.SchemeColor = 15
End With
Next oCmt
End Sub |
