Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default supress/answer "name ... already defined" msg when overwriting w/m

I am using a macro to copy|paste "special formulas" over an "identical" copy.
Both worksheets have identical named ranges and the formulas referencing
them won't change either. The only thing that is different when running this
macro are some of the data values.

So, I want to answer yes to the the dialog box (which will pop up several
times) within the macro executing the procedure. I know I can displayalerts
= false but will that make sure the names used will be the ones in the target
sheet?

Thanks,
owp^3
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default supress/answer "name ... already defined" msg when overwriting w/m

Yes. If you temporarily disable alerts, pasted formulas, with similar names
in each workbook, will assume the name in the destination (target) workbook,
ie as if you had answered yes. Of course the similar names might refer to
very different things.

Regards,
Peter T

"owp^3" wrote in message
...
I am using a macro to copy|paste "special formulas" over an "identical"

copy.
Both worksheets have identical named ranges and the formulas referencing
them won't change either. The only thing that is different when running

this
macro are some of the data values.

So, I want to answer yes to the the dialog box (which will pop up several
times) within the macro executing the procedure. I know I can

displayalerts
= false but will that make sure the names used will be the ones in the

target
sheet?

Thanks,
owp^3



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default supress/answer "name ... already defined" msg when overwriting

Great!
That's what I needed to know.
Thanks,
owp^3

"Peter T" wrote:

Yes. If you temporarily disable alerts, pasted formulas, with similar names
in each workbook, will assume the name in the destination (target) workbook,
ie as if you had answered yes. Of course the similar names might refer to
very different things.

Regards,
Peter T

"owp^3" wrote in message
...
I am using a macro to copy|paste "special formulas" over an "identical"

copy.
Both worksheets have identical named ranges and the formulas referencing
them won't change either. The only thing that is different when running

this
macro are some of the data values.

So, I want to answer yes to the the dialog box (which will pop up several
times) within the macro executing the procedure. I know I can

displayalerts
= false but will that make sure the names used will be the ones in the

target
sheet?

Thanks,
owp^3




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
How do I write an excel formula with a text answer ("yes" or "no") pat Excel Discussion (Misc queries) 1 September 9th 08 03:41 PM
Users overwriting cells with Validation set to "Lists" Mack Neff[_2_] Excel Discussion (Misc queries) 3 June 25th 07 05:39 PM
Supress "delete sheets" warning Hari[_3_] Excel Programming 0 September 14th 04 09:02 PM
Supress "delete sheets" warning Ron de Bruin Excel Programming 0 September 14th 04 08:59 PM


All times are GMT +1. The time now is 02:35 AM.

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"