r/excel • • Feb 04 '14

discussion VBA Macro code best practices?

Every programming language has its recommended style and best practices. What are the best practices for VBA code that you follow? What resources would a new coder use to learn these best practices?

Thank you in advance!

18 Upvotes

36 comments sorted by

View all comments

Show parent comment

3

u/ht1237 4 Feb 04 '14

Seconded on the setting the ranges equal to one another. This saves a lot of time and keeps your clipboard clean. I don't want to know how many imgur links I have accidentally copied into a spreadsheet during my career!