Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Questions upon opening workbooks

I am using VBA that copies all worksheets from several
workbooks into one workbook. Problem is, Excel asks me
about ten questions before the code is finished. Is
there a way to make VB answer these questions so the end
user never sees them?

The actual questions/statements a

1. A formula or sheet you want to move or copy contains
the same name 'NvsEndTime', which already exists on the
destination worksheet. Do you want to use this version of
the name? Y/N

2. The workbook you opened contains automatic links to
information in another workbook. Do you want to update
this workbook with changes made to the other workbook? Y/N

3. The selected sheet(s) will be permanently deleted.
OK/Cancel

As always, thanks for your help! You guys are AWESOME!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Questions upon opening workbooks

Try preceding your code with

Application.DisplayAlerts = False

and reset to True after.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"E. Edgington" wrote in message
...
I am using VBA that copies all worksheets from several
workbooks into one workbook. Problem is, Excel asks me
about ten questions before the code is finished. Is
there a way to make VB answer these questions so the end
user never sees them?

The actual questions/statements a

1. A formula or sheet you want to move or copy contains
the same name 'NvsEndTime', which already exists on the
destination worksheet. Do you want to use this version of
the name? Y/N

2. The workbook you opened contains automatic links to
information in another workbook. Do you want to update
this workbook with changes made to the other workbook? Y/N

3. The selected sheet(s) will be permanently deleted.
OK/Cancel

As always, thanks for your help! You guys are AWESOME!



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Questions upon opening workbooks

Thank you - this took care of problems #1 & 3, and I was
able to use the same idea to solve problem #2 - I found
Application.AskToUpdateLinks.

Thanks again!

-----Original Message-----
Try preceding your code with

Application.DisplayAlerts = False

and reset to True after.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"E. Edgington"

wrote in message
...
I am using VBA that copies all worksheets from several
workbooks into one workbook. Problem is, Excel asks me
about ten questions before the code is finished. Is
there a way to make VB answer these questions so the

end
user never sees them?

The actual questions/statements a

1. A formula or sheet you want to move or copy

contains
the same name 'NvsEndTime', which already exists on the
destination worksheet. Do you want to use this version

of
the name? Y/N

2. The workbook you opened contains automatic links to
information in another workbook. Do you want to update
this workbook with changes made to the other workbook?

Y/N

3. The selected sheet(s) will be permanently deleted.
OK/Cancel

As always, thanks for your help! You guys are AWESOME!



.

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
Opening new workbooks Falcon248 Excel Discussion (Misc queries) 0 January 22nd 10 07:09 PM
Opening specific worksheet from hyperlink more questions lots of questions Excel Discussion (Misc queries) 0 May 30th 07 09:53 PM
Opening workbooks calimari Excel Discussion (Misc queries) 2 January 24th 06 12:34 AM
Questions with 2 workbooks inbound03[_17_] Excel Programming 0 January 13th 04 09:11 PM
Opening questions Tom Ogilvy Excel Programming 2 September 1st 03 03:38 AM


All times are GMT +1. The time now is 09:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"