Author: Paul Newton
Posted: 2017-02-16 at 10:48:17
Hi all
I want to use automation to copy the active worksheet into another workbook (as an additional worksheet)
I believe I need something like this
ActiveSheet.Copy After:=Workbooks("YourWorkbookName.xls"). Sheets("Sheet3")
But I can't find how to send the correct way to do it in VFP
o = CreateObject("Excel.Application")
o.Visible = .t.
o.Workbooks.Open("C:\O32\OperaNext\Opera32\DEMODATA\SQSLACL.XLS")
o.ActiveSheet.Copy(What to put here?)
Any help would be much appreciated
Paul Newton
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/9A8106AFB0EF9B44B69045C4448935A201510E94E1@NLBAWEXMBX1.infor.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.