I am working on a macro that used columns as number (i.e. A=1, B=2) in the VBA code and I am trying to see if I can simplified my code to copy the value of a range from another worksheet to a range on a specified worksheet. Both range are identical in size.
I was able to first get it to work within the same worksheet with this code:
But then I thought I could just do the below code and it would work with a range in another worksheet but I got an error (run-time error 9 subscript out of range):Please Login or Register to view this content.
I search the web and ultimately came up with the code below that works but I was wondering if it can simplified to a one liner similar to the code above?Please Login or Register to view this content.
Thank you for your time!Please Login or Register to view this content.
Bookmarks