Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Paste problems!!!!!!


Hi,

I am writing a .NET application where I need to insert an Exce
sheet into one of the slides.
If I add an OLE object of type excel:sheet & then get a reference t
that object.

To this I paste data from the clipboard(this is a data from anothe
excel sheet).
I have set the display alerts to false.
Inspite of this I get a message saying that the data size does no
match. Do you want to paste it. I cannot afford to get this message a
I am doing a web application & this is happening on theserver side
will cause the eniter application to hang!!!!

Please halp!!!

Thanks in advance
~Ramy

--
ramya
-----------------------------------------------------------------------
ramyap's Profile: http://www.excelforum.com/member.php...fo&userid=1576
View this thread: http://www.excelforum.com/showthread.php?threadid=27273

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Paste problems!!!!!!

Using Excel as a server/background application is fraught with problems and
frustrations. MS strongly recommends against it:

http://support.microsoft.com/default...b;en-us;257757

Application.DisplayAlerts does not block macro errors, which is what occurs
in this situation. To not get this error you should make sure that only a
single cell is selected on the target sheet. If you are using PasteSpecial
with a range object (you indicated you weren't but fwiw) make sure the range
is only one cell.

--
Jim Rech
Excel MVP
"ramyap" wrote in message
...
|
| Hi,
|
| I am writing a .NET application where I need to insert an Excel
| sheet into one of the slides.
| If I add an OLE object of type excel:sheet & then get a reference to
| that object.
|
| To this I paste data from the clipboard(this is a data from another
| excel sheet).
| I have set the display alerts to false.
| Inspite of this I get a message saying that the data size does not
| match. Do you want to paste it. I cannot afford to get this message as
| I am doing a web application & this is happening on theserver side &
| will cause the eniter application to hang!!!!
|
| Please halp!!!
|
| Thanks in advance
| ~Ramya
|
|
| --
| ramyap
| ------------------------------------------------------------------------
| ramyap's Profile:
http://www.excelforum.com/member.php...o&userid=15760
| View this thread: http://www.excelforum.com/showthread...hreadid=272739
|


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
Cut and paste problems! cstratton Excel Discussion (Misc queries) 2 December 4th 08 05:59 PM
Paste problems Olga Excel Discussion (Misc queries) 1 February 19th 08 08:14 PM
format and paste problems Natalie Excel Discussion (Misc queries) 2 November 14th 07 02:32 AM
Copy - Paste problems Guillermo Excel Discussion (Misc queries) 0 April 9th 05 04:27 AM
Problems With Paste James Stephens Excel Programming 1 January 15th 04 06:54 PM


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