PC Review


Reply
Thread Tools Rate Thread

Answering an Excel generated msg box Yes

 
 
Darin Kramer
Guest
Posts: n/a
 
      9th Aug 2007
Hi there,

I have a macro that opens multiple files (individually), copies and
pastes info into and then closes files.

Problem is when Im copying the info across I get the Excel generated
message that says "A formulae or sheet that you want to move or copy
contains the name "x" which already exists on the destination worksheet.
Do you want to use this version of the name?.. etc" Then you have the
yes no option.

I want, for the message box to automatically choose the YES option. (ie
so that the user doesnt have to click yes..)



Any ideas....?

Would it be easeier if I first copied to just another sheet in the same
book?

Thanks

D



*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      9th Aug 2007
Precede the code with

Application.DisplayAlerts = False

and reset afterwards

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Darin Kramer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi there,
>
> I have a macro that opens multiple files (individually), copies and
> pastes info into and then closes files.
>
> Problem is when Im copying the info across I get the Excel generated
> message that says "A formulae or sheet that you want to move or copy
> contains the name "x" which already exists on the destination worksheet.
> Do you want to use this version of the name?.. etc" Then you have the
> yes no option.
>
> I want, for the message box to automatically choose the YES option. (ie
> so that the user doesnt have to click yes..)
>
>
>
> Any ideas....?
>
> Would it be easeier if I first copied to just another sheet in the same
> book?
>
> Thanks
>
> D
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***



 
Reply With Quote
 
Darin Kramer
Guest
Posts: n/a
 
      9th Aug 2007


Awesome Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me win my fantasy football league by answering this excel ? nicholas.deselle@gmail.com Microsoft Excel Worksheet Functions 1 29th Jun 2007 09:12 AM
Cannot Open Excel getting error: EXCEL.exe has generated errors .. =?Utf-8?B?U2FpbmU=?= Microsoft Excel Misc 11 21st Mar 2006 07:25 AM
Excel 2000 --Excel.exe generated errors and will closed by Windows =?Utf-8?B?TGl6?= Microsoft Excel Crashes 0 14th Oct 2005 02:28 PM
Excel Program Error - Excel.exe Generated Errors Message =?Utf-8?B?RGVuaXNlIExhbmU=?= Microsoft Excel Setup 4 18th Mar 2005 10:09 PM
Saving an excel generated .htm files as an excel file xargon Microsoft Excel Misc 0 4th Mar 2004 10:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 AM.