ShashankSC has asked for the wisdom of the Perl Monks concerning the following question:
Pop-up message prompt: A file named 'myexcel.xlsm' already exists in this location. Do you want to replace it?use warnings ; use Storable ; use Cwd; use Win32::OLE ; use Win32::OLE qw(in with) ; my $file = cwd.'\\'."myexcel.xlsm" ; my $Excel = Win32::OLE->new("Excel.Application") ; my $workbook = $Excel->Workbooks->Open($file) ; die "Failed to define Excel workbook" unless (defined $workbook) ; $workbook->Save;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: save read-only Excel
by stevieb (Canon) on Jun 23, 2015 at 13:45 UTC | |
by Athanasius (Archbishop) on Jun 23, 2015 at 13:57 UTC | |
by Anonymous Monk on Jun 23, 2015 at 14:42 UTC | |
by ShashankSC (Initiate) on Jun 23, 2015 at 14:16 UTC | |
by davies (Monsignor) on Jun 23, 2015 at 14:40 UTC | |
by ShashankSC (Initiate) on Jun 24, 2015 at 05:48 UTC | |
by davies (Monsignor) on Jun 24, 2015 at 14:05 UTC | |
by stevieb (Canon) on Jun 23, 2015 at 14:35 UTC | |
|
Re: save read-only Excel
by Your Mother (Archbishop) on Jun 27, 2015 at 01:59 UTC | |
|
Re: save read-only Excel
by ShashankSC (Initiate) on Jun 24, 2015 at 08:19 UTC | |
|
Re: save read-only Excel
by locked_user sundialsvc4 (Abbot) on Jun 23, 2015 at 18:37 UTC |