![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Charleston,sc
Posts: 9
|
I'm hoping this is a simple copying question. I have a macro that is copying data from one workbook to another. But I am closing the workbook I am getting the data from first. The save clipboard message pops up. Is there a piece of vba that I can insert in my macro that will answer this question yes so the user does not have to.
Thanks All, EMS |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: May 2002
Location: Gothenburg, Sweden
Posts: 74
|
Haven't tested for this particular type of alert, but one common way is the DisplayAlerts property.
Application.DisplayAlerts = False ... Application.DisplayAlerts = True
__________________
/Niklas Jansson |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Just clear the clipboard via Application.CutCopymode = False Place this after your last Copy & Paste action. |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Location: Charleston,sc
Posts: 9
|
Thanks for the help.
Vas- I tried yours with no luck, the question still waits for my answer. Ivan- I think the problem is I want to close the workbook I am copying the data from before I have pasted it in the other workbook. I guess I need to switch to the other workbook and paste it then go back and close the other workbook. It would have been easier to just close it first. Oh well, thanks for all the help. Thanks Again All for the help. Sincerly, EMS |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|