Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: create checkbox in word document

by WhiteBird (Hermit)
on May 20, 2003 at 13:24 UTC ( [id://259445]=note: print w/replies, xml ) Need Help??


in reply to Re: create checkbox in word document
in thread create checkbox in word document

Zero_Flop is right about the macros. If, however, you can't convert it you can always (as a possible last resort) create the macro in Word and then run it with a Perl command.
  • Create and name the macro in word
  • Declare it at the top of your code
    package MACRO-NAME;
  • When you need the action from the macro, you call it in perl like this:
    $Word->Documents->Open("$dir\\$file") or die "Can't open ", Win32::OLE +->LastError()); $Word->Run("MACRO-NAME");
This has saved me some time on some hurry-up projects where I didn't have success converting the VBA directly to Perl.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-18 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found