Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88054

Perl - How to open/change current Excel version with Win32::OLE

$
0
0

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.


Viewing all articles
Browse latest Browse all 88054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>