A problem with cells name in a copy/paste process

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 can’t. Someone can to help my?
 
Try something like this:

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


RBS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top