Skip to content

Instantly share code, notes, and snippets.

@aspose-com-kb
Created February 18, 2026 02:20
Show Gist options
  • Select an option

  • Save aspose-com-kb/8e74c75293c5d0580491c2a4dd2b8f30 to your computer and use it in GitHub Desktop.

Select an option

Save aspose-com-kb/8e74c75293c5d0580491c2a4dd2b8f30 to your computer and use it in GitHub Desktop.
Add Checkmark in Excel using Python.
import aspose.cells as ac
def main():
# Apply Aspose.Cells license
license = ac.License()
license.set_license("license.lic")
insert_tick_symbol()
def insert_tick_symbol():
# Load or create a workbook
workbook = ac.Workbook()
sheet = workbook.worksheets[0]
# Method 1: Unicode tick ✓
a1 = sheet.cells.get("A1")
a1.put_value("\u2713") # Insert Unicode tick
styleA1 = a1.get_style()
styleA1.font.name = "Segoe UI Symbol" # Font supporting ✓
a1.set_style(styleA1)
# Method 2: Checkbox
index = sheet.check_boxes.add(2, 0, 20, 100)
check_box = sheet.check_boxes[index]
check_box.value = True # Checked by default
check_box.text = "Checked"
# Save workbook
workbook.save("output_with_checkmarks.xlsx")
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment