LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default OLEObject question

Hi,

In FoxPro I added to a Excel sheet few fields :

_control=xlref.activesheet.oleobjects.add('Forms.t extbox.1')
_control.Object.Value="New Value"
....
The xls files were created a long time ago and now, I need to parse them.

Now in C# 2003 + PIA's, how can I access the oleObjects properties ?

I tried :
Excel.OLEObjects oleObjects =
(Excel.OLEObjects)wrkSheet.OLEObjects(Type.Missing );

foreach(Excel.OLEObject oleObject in oleObjects)

{

oleObject.Enabled = true; // it's working

BUT to what should I cast oleObject.Object ?? to access its Value property.

}

Excel.TextBoxes txtBoxes =
(Excel.TextBoxes)wrkSheet.TextBoxes(Type.Missing); returns 0 elements.


Or maybe I just need a different approach.

Thanks for any advice.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FollowHyperlink to OLEObject Tony Excel Programming 0 January 5th 05 10:15 PM
de-activating OLEObject greg Excel Programming 5 December 3rd 04 09:38 PM
OLEObject GetFocus Erich Neuwirth Excel Programming 1 August 11th 04 08:18 PM
OLEObject on worksheet. Trying to get value from it. Grant Excel Programming 4 August 9th 04 06:00 AM
OLEobject on the sheet Ryan[_6_] Excel Programming 1 August 3rd 03 03:15 PM


All times are GMT +1. The time now is 06:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"