Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Operation is not allowed

I am a VSTO 2005 user. We are getting the following error, although not
consistently, while trying to add a new list object in Worksheet.ListObjects
collection:

listObject =
myWorksheet.Worksheet.ListObjects.Add(Excel.XlList ObjectSourceType.xlSrcRange, position.TopLeftCell,
Type.Missing, Excel.XlYesNoGuess.xlYes, Type.Missing);

"The operation is not allowed. This operation is attempting to shift cells
in a list in your worksheet."


Please note that this list object previously existed in the ListObjects
collection, and was then deleted, and is now being re-added again. Since it
is not happening consistently, I am not able to understand what might be
causing this.

--
Thanks
Geetha.
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
allowed/taken Martha Excel Worksheet Functions 1 July 12th 07 04:07 PM
allowed / taken Martha Excel Worksheet Functions 3 July 11th 07 07:56 PM
Change cut/paste operation to cut/insert operation Don Guillett Excel Programming 0 January 17th 07 03:23 PM
"operation is not allowed when the object is closed" error when us madhouse Excel Programming 0 January 12th 05 09:05 AM
Operation Is Not Allowed When The Object Is Closed Mike Carlson Excel Programming 4 October 29th 03 02:18 AM


All times are GMT +1. The time now is 04:30 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"