Re:Working example of code that runs as EXCEL macro/module

2005-12-14 Thread assistent
Phil ! you wrote : === I want to run perl code as a function/module inside EXCEL, in the same way that one can run VBA. === yr wish as stated above seem to me rather strange /not to say more/ For my part I never had such a wish - working with both perl & VBA. Am I missing some point here ? Can yu

Re: Working example of code that runs as EXCEL macro/module

2005-12-14 Thread prichcre
Steven, That's sortof what I expected, but figured if I could do it with Perl that's what I would prefer. Thanks, Phil --- Suresh, I did not just "[go] clickty-click with the mouse", but I confess I did not analyze the url

RE: Working example of code that runs as EXCEL macro/module

2005-12-14 Thread Steven Manross
What do you want this macro to do? You can create an instance of the COM object that Exposes Excel to VB (and any other language that understands COM -- like perl).. --- use Win32::OLE; $excel= Win32::OLE->new("Excel.Application"); But that's not code running like an Excel macro...

RE: Working example of code that runs as EXCEL macro/module

2005-12-14 Thread Suresh Govindachar
If one examines the url provided (rather than just going clickty-click with the mouse), one can see how to get to their sites (see PS below). However, those sites won't answer your need, viz: "[you] want to run perl code as a function/module inside EXCEL, in the same way that

Re:Working example of code that runs as EXCEL macro/module

2005-12-14 Thread prichcre
The URL you provided does not work. I was able to find some stuff under "jcmcnamara" in the URL where perl is being used to create an excel file. This is not what I want to do. I want to run perl code as a function/module inside EXCEL, in the same way that one can run VBA. Thanks, Phil Da

Re: Win32::API::Struct problem

2005-12-14 Thread $Bill Luebkert
Rod Butcher wrote: >>my $PE32 = pack 'LZ', 296, 0, 0, 0, 0, 0, 0, 0, 0, ' ' x 259 . "\0"; >> >># BOOL WINAPI Process32First(HANDLE hSnapshot, LPPROCESSENTRY32 lppe); >> >>Win32::API->Import('kernel32', 'Process32First', 'IP', 'I') or >> die "import CreateToolhelp32Snapshot: $!($^E)"; >> >

Re: Win32::API::Struct problem

2005-12-14 Thread Rod Butcher
$Bill Luebkert wrote: Rod Butcher wrote: It looks like MAX_PATH defines the length of variable length string szExeFile, in C. Hence for C this is a legal field definition.. but it looks to me as if Win32::Api::Struct is not handling it as such. Neither my Perl nor my C is strong enough to fi

Re: Win32::API::Struct problem

2005-12-14 Thread $Bill Luebkert
Rod Butcher wrote: > It looks like MAX_PATH defines the length of variable length string > szExeFile, in C. Hence for C this is a legal field definition.. but it > looks to me as if Win32::Api::Struct is not handling it as such. Neither > my Perl nor my C is strong enough to figure out a way ar