Rupa has asked for the wisdom of the Perl Monks concerning the following question:
I am using the following code:
use Win32::OLE; use Win32::OLE::Const 'Microsoft Excel'; my $exlM = Win32::OLE->GetActiveObject('Excel.Application') + || Win32::OLE->new('Excel.Application', 'Quit') || die "Can'nt attac +h to excel" ; $exlM->{DisplayAlerts}=0; my $workbook= $exl->Workbooks->open("D:/Perl/$view_dataM"); my $sheet= $workbook->Worksheets(1); .... ... $sheetM->cells($a,4)->{Value}="Value"; $sheetM->Save(); $workbookM->Quit;
Problem is if I put "$exlM->{DisplayAlerts}=0;" then waring message is not getting displayed but also file is not getting saved.
Thanks for any help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overwriting an excel file
by Khen1950fx (Canon) on Feb 15, 2010 at 11:39 UTC | |
by Rupa (Initiate) on Feb 15, 2010 at 12:30 UTC | |
|
Re: Overwriting an excel file
by Ratazong (Monsignor) on Feb 15, 2010 at 10:56 UTC | |
|
Re: Overwriting an excel file
by Gangabass (Vicar) on Feb 15, 2010 at 12:33 UTC |