1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
###############################################################################
#
# An example of writing cell comments to a worksheet using Python and
# XlsxWriter.
#
# For more advanced comment options see comments2.py.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
#
import xlsxwriter
workbook = xlsxwriter.Workbook("comments1.xlsx")
worksheet = workbook.add_worksheet()
worksheet.write("A1", "Hello")
worksheet.write_comment("A1", "This is a comment")
workbook.close()
|