Use the VB editor from within Excel (Tools/Macro/Visual Basic Editor). In the Immediate Window, type:
? msoScaleFromTopLeft returns a 0. Same for msoFalse. Fred On Tue, Feb 21, 2012 at 10:32 AM, Peter Cushing < [email protected]> wrote: > Has anyone successfully done this? It would be useful for a couple of > our reports. > Putting the picture in is not the problem, but resizing it is. > > I am using VFP 7 and office 2000 to do the automation and this works > fine for simple stuff in the spreadsheets I output. > If I record a macro I get the following lines (I have added the objexcel > at the start) > > objexcel.ActiveSheet.Pictures.Insert("\mypath\mypic.jpg").Select > objexcel.Selection.ShapeRange.ScaleWidth 0.32, msoFalse, > msoScaleFromTopLeft > objexcel.Selection.ShapeRange.ScaleHeight 0.32, msoFalse, > msoScaleFromTopLeft > > The 2nd and 3rd lines don't work in Fox, but I usually just use > intellisense to find where the scalewidth/scaleheight methods are and > recode it for fox but can't seem to find them. I used to have an excel > 2000 CHM file so I could look through the PEM's. > > Any ideas? > > Thanks, > > -- > * Peter Cushing * > IT development and support > > Signature > > ---------------------------------------------------------------- > > > > Rajan Imports has changed - we are now Whispering Smith Ltd. For more > information see our website at www.whisperingsmith.com > > > Please update your address book with my new email address: > [email protected] > > . > > This communication is intended for the person or organisation to whom it > is addressed. The contents are confidential and may be protected in law. > Unauthorised use, copying or > disclosure of any of it may be unlawful. If you have received this > message in error, please notify us immediately by telephone or email. > > www.whisperingsmith.com > > Whispering Smith Ltd > Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 > Fax:0161 831 3715 > London Office:17-19 Foley Street, London W1W 6DW Tel:0207 299 7960 > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajcbksohhlj407ygfwg6hfnuq0ovty1dkhhaxmmxlcwotry...@mail.gmail.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.

