home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "Komentar"
- Function FinT(Bunka)
- FinT = Bunka.FormulaLocal
- End Function
-
- Sub Komentar()
- On Error GoTo ErrorHandler
- Application.ScreenUpdating = False
- For Each c In Selection
- If c.HasFormula = True Then
- f = FinT(c)
- c.AddComment f
- Else
- c.Comment.Delete
- End If
- Next
- Exit Sub
- ErrorHandler:
- Select Case Err.Number
- Case 1004
- c.Comment.Delete
- Case 91
- Resume Next
- End Select
- Resume
- Application.ScreenUpdating = True
- End Sub
-
-
-
-
-