Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Deleting data from Shared workbook

Hi,

I am trying to delete data on a shared workbook through
automation.

m_pXlWorksheet-UsedRange-Delete(Excel::xlToLeft);

This throws an error even when the workbook is not opened
by anyone else. Does someone know if I should be using
someother method that Delete or using some flag with it?

Thanks.
Abhinav
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Deleting data from Shared workbook

Abhinav wrote:
I am trying to delete data on a shared workbook through
automation.

m_pXlWorksheet-UsedRange-Delete(Excel::xlToLeft);

This throws an error even when the workbook is not opened
by anyone else.


From Excel help:

<<
Limitations of shared workbooks
Some features of Microsoft Excel are not available when you use a
shared workbook. If you need to use these features, do so before you
share the workbook, or remove the workbook from shared use.

In a shared workbook, you cannot do the following:

Cells
Merge cells. You can view cells that were merged before you shared the
workbook.

Insert or delete blocks of cells. You can insert or delete entire rows
and columns.

... etc.




Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

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
Saving data to a shared workbook the Swing Excel Discussion (Misc queries) 0 August 12th 09 08:27 PM
Shared workbook loses data Chuck W[_2_] Excel Discussion (Misc queries) 6 September 12th 07 03:24 PM
Data Entry in shared workbook RUSH2CROCHET Excel Discussion (Misc queries) 0 August 28th 07 09:50 PM
Why do I lose data in a shared workbook? trainer07 Excel Discussion (Misc queries) 0 September 7th 06 11:36 PM
How can I prevent someone from deleting a shared workbook? Brian Excel Worksheet Functions 2 May 19th 06 02:49 PM


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