Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default AddOleObject() fails if a key is pressed

I am developing an AddIn in C# 2.0 using Visual Studio 2005 for Excel
2002.

The addin adds a number of OLE objects to the form in a loop. The
problem is that if I press any key when the loop is executing, the
AddOLEObject() method fails and throws a COM exception.
I tried disabling Events, Calculation etc but could not get a way to
disable input in the cell. Is there any way I can disable the keyboard
while the loop is being executed.
If I use Interactive = False, ESC key processing is also disabled and
I need it to interrupt the processing.

Reply
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
How to intercept each pressed key Stefan Mueller[_2_] Excel Programming 3 July 17th 07 07:58 AM
How do I determine what key was pressed notso Excel Programming 0 April 7th 07 06:04 PM
What key was pressed? [email protected] Excel Programming 2 July 30th 05 09:12 AM
Was Delete Key pressed? HLong Excel Programming 1 July 5th 05 11:00 PM
AddOLEObject Sean McPoland[_5_] Excel Programming 0 September 14th 04 12:25 PM


All times are GMT +1. The time now is 05:26 AM.

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

About Us

"It's about Microsoft Excel"