Streamline macro code.

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

Hi all. I have a quick question on macro code. When you
record a macro using the record button you get alot of
extra code not needed to preform your macro properly. (I.e
when you copy and paste special only the values of the
cell into another cell, you get alot of funtions that are
false and you can delete that part of the code to save
space and resources in you spreadsheet.) I was hoping some
knew of a site that I could check out to help me steamline
my codes to take up less space and time to run.

Thanks for any help
Pete
 
One of the best things you can do is remove SELECTIONS.
range("a1").select
selection.copy
range("a2").select
selection.paste
can be
range("a1").copy range("a2")
 

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