Object Rexx does not support Visual Basic-style named arguments.  However,
that is just syntax over the top of the real method call, which has a
positional argument for each named argument.  The docs for the copy method
are here:

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._worksheet.copy.aspx

The Before argument is the first one, so just specifying the equivalent of
Sheets(3) as the first argument to copy should suffice.

Rick


On Mon, Dec 30, 2013 at 8:22 AM, David Dawson <[email protected]>wrote:

> Thanks for the prompt response Rony.
>
> If I omit the parameters ("Before ...") the copy executes successfully and
> does what the Excel documentation states
> i.e. - it copies the worksheet into a new workbook - not what I want.
>
> So I suspect the solution won't work. In order to try your solution - how
> would I specify the "Before:=Sheets(3)" ?
>
>
> Thanks again.
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Oorexx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to