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: 5
Default Error in Retrieving Worksheet.OLEObjects property

Hi All,


I have an Excel Addin written in C# (.Net 1.1). I am trying to get the
collection of Worksheet.OLEObjects property(using C#) by this method:


Excel.OLEObjects oles = (Excel.OLEObjects)
xlSheet.GetType().InvokeMember("OLEObjects", BindingFlags.Default |
BindingFlags.GetProperty, null, xlSheet, new object[] {});


This was working previously, but suddenly 2-3 days back this stopped
working. I am working with VS .Net 2003 and Excel 2003. I also have VS .NEt
2005 installed on my machine.


Recently VS .NET 2005 SP1 was applied on my machine. I suspect that this is
the problem, but cannot relate to it. The Exception message just shows a "?".


Here is the Error Stack Trace:


mscorlib
?
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[] args)
at MyExcelAddin.MyWorksheet.getListOle()


What can be the issue?


Regards


Sarang Bapat

 
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
Run-Time error '1004: Unable to get the PivotTables property of the worksheet class magarnagle Excel Programming 4 May 19th 06 11:20 AM
Error with OLEObjects helmekki[_118_] Excel Programming 2 November 24th 05 06:09 PM
Runtime error 1004 - unable to set Visible property of Worksheet c SueJB Excel Programming 2 October 4th 05 02:27 PM
Error: Unable to get the OLEObjects property of the worksheet class Grant Excel Programming 2 August 6th 04 02:20 PM
Retrieving formulas property in Office System in Spanish Rodolfo Excel Programming 0 March 2nd 04 04:59 PM


All times are GMT +1. The time now is 06:43 PM.

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"