Make sure that if the cell has any formatting (like date, etc.) that you
plug the same type of data into it.
Vince Teachout wrote:
> Garry Bettle wrote:
>
>> Howdy all,
>>
>> I have some automation code that I'm using with VFPs' _cliptext variable:
>>
>> i.e.
>>
>> _cliptext = lcClipText
>>
>> oExcel.Range("A1").Select
>> oExcel.ActiveSheet.Paste()
>> oExcel.ActiveCell.Copy
>> lcClipText = TRANSFORM( CAST( _cliptext as Numeric( 10, 5)))
>>
>> My question is whether I need to use _cliptext at all. It seems a bit
>> dangerous and easily corrupted, especially as I call the Excel
>> function quite a few times.
>>
>> Can I insert lcClipText into .Past() somehow?
>>
>>
> Why not simply do this:
> oSheet.Range("A1").value = lcClipText
>
>
>
>
_______________________________________________
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/%(messageid)s
** 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.