home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 December (Special)
/
PCWorld_2002-12_Special_cd.bin
/
Special_komplet
/
special_komplet.exe
/
Komentar.bas
< prev
next >
Wrap
BASIC Source File
|
2002-01-03
|
579b
|
32 lines
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