# This was inside a wrapper hence the Excel object was stored as below
my $book = $self->{Excel}->Workbooks->Add;
# I also had previously stored all the tables in the object
my $table = $self->{Tables}->[$i];
# Copy the table range
$table->{Range}->Copy();
# Add a new worksheet
my $sheet = $Book->Worksheets->Add;
$sheet->Paste;
$self->{Excel}->{DisplayAlerts} = False;
$sheet->Delete();
# Close the excel book
$book->Close( { SaveChanges => False } );
# Empty clip board
Win32::Clipboard->Empty();
####
- Merged cells: 'Only an issue if you actually want to extract the data when saved as txt tables (which I was)'
- Wraped cells in word: Wrapped cells will copy to excel to the number of rows their text covers.
####
|----------------|
| A Heading |
| that is wraped |
|----------------|
becomes
|----------------|
| A Heading |
|----------------|
| that is wraped |
|----------------|
in excel