On my laptop I have 2 versions of Excel (64bit and 32bit). When I open Excel file as a standalone it opens the 32bit version and that is what I need. But when I run my Perl script it opens Excel file with Excel 64bit version.
My code so far:
$excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application') or die "CreateObject : +$!\n";
I need assistance to identify how Perl (Wn32::OLE::Const) package decides which version of of Excel to use.
When I check a path of created Excel object it says C:\Program Files\Microsoft Office\Office15
(this means 64 bit version).
Thank you.