Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

How to avoid the "There is a large amount of data in the clipboard... " dialog box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith B - 20 Feb 2005 00:02 GMT
I have a Word VBA Subroutine the opens an excel spreadsheet, copies a range
into the clipboard, closes the excel application, and then pastes the
information from the clipboard into the word document. I am getting the
"There is a large amount of data in the clipboard... " dialog box. How can I
disable this feature from within my Word VBA subroutine?

Thanks,

Keith
Jezebel - 20 Feb 2005 00:12 GMT
Copy something small to the clipboard before exiting. (eg, select the first
character of your document and copy that).

Better is not to use the clipboard at all. There are easier ways to transfer
data from Excel to Word (eg, read the Excel Range into a variable).

>I have a Word VBA Subroutine the opens an excel spreadsheet, copies a range
>into the clipboard, closes the excel application, and then pastes the
[quoted text clipped - 5 lines]
>
> Keith
Peter_A_M (NL) - 22 Feb 2005 12:45 GMT
... but if you do want to use this method:
With Application.DisplayAlerts = wdAlertsNone at least you suppress the
message.
(In that case the default option is chosen.)
Don't forget to restore to Application.DisplayAlerts = wdAlertsAll within
your code!

Peter

> Copy something small to the clipboard before exiting. (eg, select the first
> character of your document and copy that).
[quoted text clipped - 11 lines]
> >
> > Keith
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.