Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Excel Tables #47

Closed
fzumstein opened this issue Jul 30, 2014 · 2 comments · Fixed by #1453
Closed

Add support for Excel Tables #47

fzumstein opened this issue Jul 30, 2014 · 2 comments · Fixed by #1453
Milestone

Comments

@fzumstein
Copy link
Member

fzumstein commented Jul 30, 2014

see: http://www.jkp-ads.com/articles/Excel2007TablesVBA.asp
and: http://www.techrepublic.com/blog/10-things/10-reasons-to-use-excels-table-object/

Some notes:

import xlwings as xw
wb = xw.books.active
r = wb.sheets[0].range('A1').api.list_object.name.get()
wb.sheets[0].range('A1').api.list_object.list_rows[2].range_object.delete_range()
wb.sheets[0].range('A1').api.list_object.list_rows[1].range_object.insert_into_range(shift=kw.shift_down)
@jaymegordo
Copy link

+1 for this. It would be really nice to interact with listobjects through the xlwings api.

Functions for loading to/from dataframes would be great also.

@fzumstein fzumstein added this to the 0.18.1 milestone Apr 10, 2020
@fzumstein
Copy link
Member Author

note for mac properties:

{k.class_: k.list_object,
k.name: 'Table1',
k.display_name: 'Table1',
k.comment: '',
k.show_headers: True,
k.total: False,
k.show_autofilter: True,
k.table_style: app(pid=1150).workbooks['Book5'].worksheets['Sheet1'].list_objects[1].table_styles[1],
k.show_table_style_first_column: False,
k.show_table_style_last_column: False,
k.show_table_style_row_stripes: True,
k.show_table_style_column_stripes: False,
k.range_object: app(pid=1150).workbooks['Book5'].worksheets['Sheet1'].list_objects[1].range_object,
k.default: 'Table1',
k.active: False,
k.display_right_to_left: False,
k.cell_table: app(pid=1150).workbooks['Book5'].worksheets['Sheet1'].list_objects[1].cell_table,
k.total_row: k.missing_value,
k.header_row: app(pid=1150).workbooks['Book5'].worksheets['Sheet1'].list_objects[1].header_row,
k.insert_row: k.missing_value,
k.query_table: k.missing_value,
k.autofilter_object: app(pid=1150).workbooks['Book5'].worksheets['Sheet1'].list_objects[1].autofilter_object,
k.sort_object: app(pid=1150).workbooks['Book5'].worksheets['Sheet1'].list_objects[1].sort_object,
k.source_type: k.src_none}

@fzumstein fzumstein modified the milestones: 0.19.0, 0.19.1, 0.19.2 May 2, 2020
@fzumstein fzumstein modified the milestones: 0.19.2, 0.19.3 May 11, 2020
@fzumstein fzumstein modified the milestones: 0.19.3, 0.19.4 May 19, 2020
@fzumstein fzumstein modified the milestones: 0.20.5, 0.20.6 Aug 23, 2020
@fzumstein fzumstein modified the milestones: 0.20.6, 0.20.7, 0.20.8 Sep 1, 2020
@fzumstein fzumstein added the PRO label Sep 17, 2020
@fzumstein fzumstein modified the milestones: 0.20.8, 0.20.9 Oct 13, 2020
@fzumstein fzumstein removed the PRO label Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants