ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can I respond by program for prompt conflict name (https://www.excelbanter.com/excel-programming/378250-can-i-respond-program-prompt-conflict-name.html)

Warda

Can I respond by program for prompt conflict name
 
Hi,
I am copying by program a range of cells from one book to another. These
cells, which I want to copy, contain formula with names defined at workbook
levels. The workbook destination contains same defined names. When a program
copies cells from one workbook to another workbook Microsoft Excel displays
for each name the following prompt indicating name conflict.
"A formula or sheet you want to move or copy contains the name 'aaaa', which
already exists on the destination worksheet. Do you want to use this version
of the name?
- To use the name as defined in the destination sheet, click Yes
- To rename the range referred to in the formula or worksheet, click No, and
enter a new name in the Name Conflict dialog box".
My response is Yes for all names.
My question is How can I give the response automatically with VBA, is there
any parameter to VBA €śpaste€ť command which will replace the prompt of Excel.
Thanks in advance.


Jim Jackson

Can I respond by program for prompt conflict name
 
Does "Application.DisplayAlerts = False" not work for this? I've not tried
this particular situation so I am "grabbing at straws".
--
Best wishes,

Jim


"Warda" wrote:

Hi,
I am copying by program a range of cells from one book to another. These
cells, which I want to copy, contain formula with names defined at workbook
levels. The workbook destination contains same defined names. When a program
copies cells from one workbook to another workbook Microsoft Excel displays
for each name the following prompt indicating name conflict.
"A formula or sheet you want to move or copy contains the name 'aaaa', which
already exists on the destination worksheet. Do you want to use this version
of the name?
- To use the name as defined in the destination sheet, click Yes
- To rename the range referred to in the formula or worksheet, click No, and
enter a new name in the Name Conflict dialog box".
My response is Yes for all names.
My question is How can I give the response automatically with VBA, is there
any parameter to VBA €śpaste€ť command which will replace the prompt of Excel.
Thanks in advance.



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com