Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comments Merge cells in Excel
#4
Macro Macro1288
Code:
Copy      Help
ExcelSheet es.Init

Excel.Range r=es.ws.Application.Selection
;out r.Comment.Text ;;error
;out r.Cells.Count ;;>1 for merged cells

r=r.Cells.Item(1 1) ;;get top-left cell
out r.Comment.Text

;there are multiple cells in the merged cells.
;get comment of the first cell.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)