Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Yes No Auto-answer?

I open a .dbf file, copy its contents to a workbook and then close the .dbf
file all in a macro. Problem is the computer asks me if I want to save the
copy-paste data in the clipboard or free it up. I want to free it up but I
don't want the user of the macro to have a choice. Can I set up an
autoanswer or can make it not ask that question? Excel 2000.

Many thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Yes No Auto-answer?

Application.CutCopyMode = False

will clear the clipboard

or
Application.DisplayAlerts = False
workbooks("MyDatabase.dbf").Close SaveChanges:=False
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy

"Joe Blow" wrote in message
news:DGFvc.659595$Ig.13619@pd7tw2no...
I open a .dbf file, copy its contents to a workbook and then close the

..dbf
file all in a macro. Problem is the computer asks me if I want to save the
copy-paste data in the clipboard or free it up. I want to free it up but I
don't want the user of the macro to have a choice. Can I set up an
autoanswer or can make it not ask that question? Excel 2000.

Many thanks.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Yes No Auto-answer?

Application.DisplayAlerts = False
workbooks("MyDatabase.dbf").Close SaveChanges:=False
Application.DisplayAlerts = True


Turning the displayalerts off will cause Excel to choose
the default choice, and the default for the large
clipboard message is to leave the information in the
clipboard so that it can be pasted later.

-----Original Message-----
Application.CutCopyMode = False

will clear the clipboard

or
Application.DisplayAlerts = False
workbooks("MyDatabase.dbf").Close SaveChanges:=False
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy

"Joe Blow" wrote in message
news:DGFvc.659595$Ig.13619@pd7tw2no...
I open a .dbf file, copy its contents to a workbook

and then close the
..dbf
file all in a macro. Problem is the computer asks me

if I want to save the
copy-paste data in the clipboard or free it up. I want

to free it up but I
don't want the user of the macro to have a choice. Can

I set up an
autoanswer or can make it not ask that question? Excel

2000.

Many thanks.




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Yes No Auto-answer?

Thanks for the Additionan information.

If that is a problem, then

Application.CutCopyMode = False

would be appropriate

an alternative

Range("A1").Copy

would replace what is in the clipboard and would not raise the prompt.

--
Regards,
Tom Ogilvy


"Kris" wrote in message
...
Application.DisplayAlerts = False
workbooks("MyDatabase.dbf").Close SaveChanges:=False
Application.DisplayAlerts = True


Turning the displayalerts off will cause Excel to choose
the default choice, and the default for the large
clipboard message is to leave the information in the
clipboard so that it can be pasted later.

-----Original Message-----
Application.CutCopyMode = False

will clear the clipboard

or
Application.DisplayAlerts = False
workbooks("MyDatabase.dbf").Close SaveChanges:=False
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy

"Joe Blow" wrote in message
news:DGFvc.659595$Ig.13619@pd7tw2no...
I open a .dbf file, copy its contents to a workbook

and then close the
..dbf
file all in a macro. Problem is the computer asks me

if I want to save the
copy-paste data in the clipboard or free it up. I want

to free it up but I
don't want the user of the macro to have a choice. Can

I set up an
autoanswer or can make it not ask that question? Excel

2000.

Many thanks.




.



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
Auto sum gives answer 0 when there are cell values Coylumbridge Excel Discussion (Misc queries) 6 May 6th 23 11:42 AM
Auto answer message box csdjj Excel Discussion (Misc queries) 3 August 5th 09 06:33 PM
Calculator Answer Doesn't Match Excel Answer GwenH Excel Discussion (Misc queries) 3 October 20th 08 10:17 AM
How do I connect 2 Excel Sheets to give auto answer on the 3rd Maca Excel Worksheet Functions 1 November 1st 05 12:31 PM
i cant get the exact answer e.g answer is 13.49% i got 13.00% zai Excel Discussion (Misc queries) 3 June 9th 05 01:00 PM


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