copy paste with min data transfer

  • Thread starter Thread starter dude
  • Start date Start date
D

dude

I have this macro that opens a specified excel file (a large one) i
order to import information from it to another excel.

To import the information I use the copy usedarea function and paste i
as values in the target.

For some reason this macro results in my target file becoming hug
(lots of MB). When I try doing the same procedure manually (copy rang
- paste special values. The result is different and does not import an
access MBs.

Is there a way to import data in the minimum storage capacity?

Thanks
 
When you do this manually, how do you find the used range?

If you locate it yourself, maybe you're not doing the same thing that excel
does.

ctrl-end will take to you the last used cell.

If that's way past what you expect, maybe a visit to Debra Dalgleish's site will
help:

http://www.contextures.com/xlfaqApp.html#Unused

(She has some code there that you may want to incorporate into your macro.)
 

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