Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Text Box control in Excel - how to reference in Perl

by poj (Abbot)
on Sep 10, 2014 at 07:20 UTC ( [id://1100086]=note: print w/replies, xml ) Need Help??


in reply to Text Box control in Excel - how to reference in Perl

#!perl use strict; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Excel'; $Win32::OLE::Warn = 3; # die on errors... my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); my $book = $Excel->Workbooks->Open('25.xls'); my $sheet = $book->Worksheets('Test1'); # print all for my $shape ( in $sheet->Shapes ){ print $shape->Name.' = '; print $shape->TextFrame2->TextRange->Text."\n"; } # print one print $sheet->Shapes('TextBox 1')->TextFrame2->TextRange->Text."\n";
poj

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100086]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found