Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel ActiveX controls in VFP
Message
From
15/12/1999 21:50:12
Todd Brown
Teachers Credit Union
Granger, Indiana, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Excel ActiveX controls in VFP
Miscellaneous
Thread ID:
00304495
Message ID:
00304495
Views:
47
I have been trying to get the paste one area of a worksheet to another using the pastespecial and pastevalues functions in Excel. I do not think I have the right syntax in VFP for the command. The correct syntax in Visual Basic help documents for pastespecial is:

expression.PasteSpecial(Paste, Operation, SkipBlanks, Transpose)

I translate this in VFP to

oXL.PasteSpecial(-4136)
The -4136 = xlPasteValues

When I use this an error message is returned:

Unable to get the PasteSpecial property of the range class.
Any ideas on the correct syntax in VFP.
Next
Reply
Map
View

Click here to load this message in the networking platform