Hi all,
I have a lot of Excel documents with many sheets within each. However, for some sheets, I need to delete specific elements that are no longer needed (at least for now). I would rather not delete them manually in Excel.
I have previously used mata to manipulate the Excel files, but I can't figure out how to delete specific columns, rows, or cells.
My approach for manipulating in terms of e.g. column width and cell merging is e.g.:
Is is possible to use this approach to delete specific elements within the excel sheet?
(Note: I apply 'mata:' before each command as I apply these within a loop).
Thank you.
Best,
Lau
I have a lot of Excel documents with many sheets within each. However, for some sheets, I need to delete specific elements that are no longer needed (at least for now). I would rather not delete them manually in Excel.
I have previously used mata to manipulate the Excel files, but I can't figure out how to delete specific columns, rows, or cells.
My approach for manipulating in terms of e.g. column width and cell merging is e.g.:
Code:
mata: b = xl() mata: b.load_book("my file") mata: b.set_sheet("sheet") mata: b.set_column_width(1,5,15)
(Note: I apply 'mata:' before each command as I apply these within a loop).
Thank you.
Best,
Lau
Comment