Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Named Range override when copying worksheet

I have a worksheet that I use as a "template" - layout, formatted correctly,
etc.. When I start my macro I copy that template to a working worksheet
where I start to populate data, formulas. The template has named ranges in
it. When I copy it I get a message asking me to copy teh named range, or
point to another reference soemwhere on my computer ... isn;t there an option
to override that and just accept the YES option for each named range when
copying a worksheet?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Named Range override when copying worksheet

Jim,

At the beginning of your macro include the line:

Application.DisplayAlerts=False

This will suppress the dialog box. Excel will then assume you are saying
'Yes'.

It is also good practice to include the line at the end of your macro:

Application.DisplayAlerts=True

Have a look at the help file notes on this.

Regards
Paul

"JimBob" wrote in message
...
I have a worksheet that I use as a "template" - layout, formatted
correctly,
etc.. When I start my macro I copy that template to a working worksheet
where I start to populate data, formulas. The template has named ranges
in
it. When I copy it I get a message asking me to copy teh named range, or
point to another reference soemwhere on my computer ... isn;t there an
option
to override that and just accept the YES option for each named range when
copying a worksheet?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Named Range override when copying worksheet

Ohh ... yeah ... works great - thanks !

"Paul Wilson" wrote:

Jim,

At the beginning of your macro include the line:

Application.DisplayAlerts=False

This will suppress the dialog box. Excel will then assume you are saying
'Yes'.

It is also good practice to include the line at the end of your macro:

Application.DisplayAlerts=True

Have a look at the help file notes on this.

Regards
Paul

"JimBob" wrote in message
...
I have a worksheet that I use as a "template" - layout, formatted
correctly,
etc.. When I start my macro I copy that template to a working worksheet
where I start to populate data, formulas. The template has named ranges
in
it. When I copy it I get a message asking me to copy teh named range, or
point to another reference soemwhere on my computer ... isn;t there an
option
to override that and just accept the YES option for each named range when
copying a worksheet?




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
copying the contents of a named range from one location to another Steve Excel Discussion (Misc queries) 0 May 22nd 09 08:31 PM
Copying Named Range Blinkinhek Excel Worksheet Functions 5 August 29th 08 04:54 PM
copying a named range jenniebentham Excel Discussion (Misc queries) 0 December 20th 06 04:51 PM
copying named range ym Excel Discussion (Misc queries) 3 June 4th 06 04:47 PM
Copying a named range of cells Darrel[_3_] Excel Programming 1 October 29th 03 04:59 PM


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

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"