Hi
In pursuit of making code shorter with fewer lines etc. there's something I don't understand. It's propably easy to explain for a couple of guys in here.
Why does this work?
While this does not work (I have to split the line below in two in order to make it work)?
I've defined/dimmed "Departments" as range.
In pursuit of making code shorter with fewer lines etc. there's something I don't understand. It's propably easy to explain for a couple of guys in here.
Why does this work?
Code:
Activeworkbook.Sheets("A").Range(Departments, Departments).Copy
While this does not work (I have to split the line below in two in order to make it work)?
Code:
Activeworkbook.Sheets("A").Departments.Copy
I've defined/dimmed "Departments" as range.