Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting Comment to Cell in Excel
#3
Member function ExcelSheet.SetComment
Code:
Copy      Help
function $cell $text

;Adds or changes cell comment.

;cell - cell, such as "A1". Use "sel" for current selection.
;text - comment text.

;EXAMPLE
;ExcelSheet es.Init
;es.SetComment("A2" "bbbbbb")


Excel.Range r
if(!StrCompareN(cell "sel" 3 1)) r=ws.Application.Selection
else r=ws.Range(cell)

r.AddComment(text)
err ;;error if comment already exists
,Excel.Comment c=r.Comment
,c.Text(text)


Messages In This Thread

Forum Jump:


Users browsing this thread: 8 Guest(s)