mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 06:06:09 -06:00
[GH-ISSUE #507] Feature Request: Checkboxes #394
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#394
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kruftindustries on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/507
Originally assigned to: @jmcnamara on GitHub.
Insert checkbox form controls into cells. This is an Excel 365 feature (2024+) that displays boolean values as interactive checkboxes.
API Changes:
Note: autofit does not expose a new public API function.
New function:
lxw_error worksheet_insert_checkbox(lxw_worksheet *worksheet,lxw_row_t row, lxw_col_t col,uint8_t value);Code Example:
#include "xlsxwriter.h"int main() {lxw_workbook *workbook = workbook_new("checkbox.xlsx");lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);/* Insert checkboxes */worksheet_insert_checkbox(worksheet, 0, 0, LXW_FALSE); /* Unchecked */worksheet_insert_checkbox(worksheet, 1, 0, LXW_TRUE); /* Checked */worksheet_insert_checkbox(worksheet, 2, 0, 0); /* Unchecked */worksheet_insert_checkbox(worksheet, 3, 0, 1); /* Checked */return workbook_close(workbook);}@jmcnamara commented on GitHub (Jan 12, 2026):
This is a useful feature and, from memory, wasn't too difficult to implement in Python/Rust so I will look at doing this.
@kruftindustries commented on GitHub (Jan 13, 2026):
Ready for review