Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Copy from Word on clipboard

Hi everybody,
I have made a routine where a worddocument is copied and pasted in an Excel
Sheet. When it´s pasted I will close down the copied selection on clip board
and close down Word.
i can´t clear the clipboard from the wordcopy and of that reason it´s not
possible to close down the Word Application (there is a question if the
clipboard copy should be saved). In Excel I use "Application.CutCopyMode =
False" but it does not work in this case.
Thanks in advance for any answer how I could solve this problem.
Best Regards
Mats




--
ESI Update
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default Copy from Word on clipboard

Mats Nilsson:

try, EmptyClipboard Api Function

e.g.

Private Declare Function OpenClipboard Lib "user32" (ByVal hWnd As Long) As
Long
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function EmptyClipboard Lib "user32" () As Long
Public Sub JustEmptyClipboard()
OpenClipboard (0)
EmptyClipboard
CloseClipboard
End Sub

--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Mats Nilsson" wrote:

Hi everybody,
I have made a routine where a worddocument is copied and pasted in an Excel
Sheet. When it´s pasted I will close down the copied selection on clip board
and close down Word.
i can´t clear the clipboard from the wordcopy and of that reason it´s not
possible to close down the Word Application (there is a question if the
clipboard copy should be saved). In Excel I use "Application.CutCopyMode =
False" but it does not work in this case.
Thanks in advance for any answer how I could solve this problem.
Best Regards
Mats




--
ESI Update

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Copy from Word on clipboard

In your routine, insert a line like

wdApp.DisplayAlerts = False

before closing the file and quitting Word, which should suppress the warning
message.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"Mats Nilsson" wrote in message
...
Hi everybody,
I have made a routine where a worddocument is copied and pasted in an
Excel
Sheet. When its pasted I will close down the copied selection on clip
board
and close down Word.
i cant clear the clipboard from the wordcopy and of that reason its not
possible to close down the Word Application (there is a question if the
clipboard copy should be saved). In Excel I use "Application.CutCopyMode =
False" but it does not work in this case.
Thanks in advance for any answer how I could solve this problem.
Best Regards
Mats




--
ESI Update



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
How to permantently hide clipboard pane on the right side of Word/Excel 2003? Goran Ivanic Excel Discussion (Misc queries) 1 May 7th 08 10:37 PM
clipboard clearing in excel, access, word... troy stud Excel Discussion (Misc queries) 0 October 27th 06 11:02 PM
copy to the clipboard and into another workbook Mark Dvorkin Excel Discussion (Misc queries) 2 February 24th 06 02:41 AM
Copy from clipboard? G Lam[_2_] Excel Programming 1 November 24th 04 09:05 AM
Paste Clipboard from Word to last row in excel Otto Moehrbach[_3_] Excel Programming 1 July 23rd 03 03:30 PM


All times are GMT +1. The time now is 08:14 AM.

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"