ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   A problem with cells name in a copy/paste process (https://www.excelbanter.com/excel-programming/394194-problem-cells-name-copy-paste-process.html)

LRAF

A problem with cells name in a copy/paste process
 
I need to copy a range of data from one book (A) to other (B). Both books
have cells with the same name and the range of data is referenced to these
cells in book A. When I copy and paste the range of data in book B appears a
Dialog Box that ask me if I want to use the version of the name in book B and
I have to say yes. The problem is that I do the copy / paste process with
macros but the dialog box always appears and I would like to €śsay yes in the
dialog box€ť automatically but I cant. Someone can to help my?

RB Smissaert

A problem with cells name in a copy/paste process
 
Try something like this:

Workbooks("BookA").Sheets(1).Range("test").Copy _
Workbooks("BookB").Sheets(1).Range("test")


RBS

"LRAF" wrote in message
...
I need to copy a range of data from one book (A) to other (B). Both books
have cells with the same name and the range of data is referenced to these
cells in book A. When I copy and paste the range of data in book B
appears a
Dialog Box that ask me if I want to use the version of the name in book B
and
I have to say yes. The problem is that I do the copy / paste process with
macros but the dialog box always appears and I would like to €śsay yes in
the
dialog box€ť automatically but I cant. Someone can to help my?




All times are GMT +1. The time now is 11:47 AM.

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