Thanks Alan

I could certainly do that and I already have a workbook set up but I would prefer a non-automation method if possible.

Paul

On 14/12/2022 09:10, Alan Bourke wrote:
Thinking aloud, if you could guarantee 32-bit Excel was available you could 
probably use Excel automation to do it, i.e.

Create a Workbook programmatically
Fill defined cells with your input values
Do a Goal Seek with result in a defined cell
Read that value back to VFP.

     Range("B4").GoalSeek Goal:=-900, ChangingCell:=Range("B3")



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/[email protected]
** 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.

Reply via email to