Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default PasteSpecial of range class failed in Excel 2003

Hi!

I have an exe which fetches the data from the database and then populates
the Excel file. And then it is emailed to the user.

If this exe is requested con-currently couple of times, then this error
occurs.

PasteSpecial of range class failed.

I have one fixed formatted row in the Template file which then I am copy -
pasting for further row addition.

Does it have anything to do with clipboard issue?

Please help.

Thanks and Regards,
Sachin Vaishnav
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default PasteSpecial of range class failed in Excel 2003

I would suspect it is a timing issue - especially if the paste range comes
from or is going into the area that is coming from the database. If Excel is
still busy retrieving data (as it might be if this is running concurrently)
then it may not allow you to paste at the time you are trying to do it.

How are you retrieving the data? MSQuery? Is the backgroundquery property
set to true? If so try false. If backgroundquery is on your code can
continue running even if the data is not yet retrieved; setting it off forces
your code to wait for the data to be populated.
- K Dales


"Sachin Vaishnav" wrote:

Hi!

I have an exe which fetches the data from the database and then populates
the Excel file. And then it is emailed to the user.

If this exe is requested con-currently couple of times, then this error
occurs.

PasteSpecial of range class failed.

I have one fixed formatted row in the Template file which then I am copy -
pasting for further row addition.

Does it have anything to do with clipboard issue?

Please help.

Thanks and Regards,
Sachin Vaishnav

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
PasteSpecial Method of Range Class Failed Error Brian C Excel Programming 5 March 30th 06 08:01 PM
runtime error 1004 pastespecial method of range class failed dreamz[_29_] Excel Programming 5 February 3rd 06 02:57 PM
PasteSpecial method of Range class failed windsor Excel Programming 6 October 6th 05 10:16 PM
Excel 97 error: 'Copy method of range class failed' Linking to specific cells in pivot table Excel Programming 10 July 9th 05 03:19 AM
Run-time error '1004' PasteSpecial Method of Range Class Failed Kevin G[_2_] Excel Programming 1 February 3rd 04 05:01 AM


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