You might like to look into using Win32::OLE. The docs have an example for Excel at least....
In reply to Re: VBA Macro by missingthepoint in thread VBA Macro by Anonymous Monk