Pop-up prompt message: "A file named 'myexcel.xlsm' already exists in this location. Do you want to replace it? " The above should work irrespective of the Excel file 'myexcel.xlsm' being RO or RW. Thanksuse 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;
In reply to Re^4: save read-only Excel
by ShashankSC
in thread save read-only Excel
by ShashankSC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |