Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Pass arguments to VBA macro

by prasadbabu (Prior)
on May 11, 2007 at 09:32 UTC ( [id://614858]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Win32::OLE;
    use Win32::OLE qw(in with);
    ...
    $word->AddIns->Add({Filename=>"$cur_dir\\vad.dot", Install=>"True"});
    #$word->run("vad")       #running fine
    $word->run("vad", "D:\\Prasad\\Projects\\tools\\vad"'); #getting error
    
  2. or download this
    OLE exception from "Microsoft Word":
    
    ...
    
    Win32::OLE(0.1707) error 0x80020003: "Member not found"
        in METHOD/PROPERTYGET "run" at D:\Prasad\Projects\tools\vad\vad.pl
    + line 314
    
  3. or download this
    sub vad(path as string)
    {
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-18 23:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found