Passage paramétres Ole Excel

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !

Passage paramétres Ole Excel

Postby Tranber44 on Sun May 18, 2014 5:10 pm

Hello,
It is not for lack of having tried very numerous solutions but I did not find the way of crossing the parameters special collage under OLE Excel. Thank you for your help.

x←WAdh.Sheets.(Item('xxxxxxxxxxx')).(Range('A20:R31')).PasteSpecial('Paste:=xlPasteAll')
DOMAIN ERROR

Regards

Bertrand Delassus
Tranber44
 
Posts: 34
Joined: Mon Jan 11, 2010 4:46 pm

Re: Passage paramétres Ole Excel

Postby Morten|Dyalog on Sun May 18, 2014 5:53 pm

Bertrand,

New syntax was introduced in Version 11.0 of Dyalog APL, controlled by the value of the system variable ⎕WX (http://help.dyalog.com/13.2/Content/Language/System%20Functions/wx.htm).

The default in a new version of APL is ⎕WX=3. Can you try the following and see if it works?

Code: Select all
x←WAdh.Sheets[⊂'xxxxxxxxxxx'].Range[⊂'A20:R31'].PasteSpecial ⊂'Paste:=xlPasteAll'


You can revert to the old behaviour by setting ⎕WX to 0 or 1, but I think it is a better idea to adapt your code to the improved syntax.
User avatar
Morten|Dyalog
 
Posts: 453
Joined: Tue Sep 09, 2008 3:52 pm


Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest