I'm writing what should be a very simple little macro that copies data from one worksheet to another. All the values being copied are in col W at various locations. There are 51 cells that need to be selected, all non-adjacent. I was hoping to be able to grab these values all at one time, copy them, go to another sheet, paste.
However, I can't seem to get the cells selected. The line is simple: Range("W47,W95,W140,W185,W230,W275, ....) etc - 51 values in all
When I test this line, I get a runtime error:
Method range of object global failed
Is there a maximum number of non-adjacent cells that can be selected at one time? Or should I create a variable for these cells? Or is there a better way all together?
Thanks so much!!
Mary
However, I can't seem to get the cells selected. The line is simple: Range("W47,W95,W140,W185,W230,W275, ....) etc - 51 values in all
When I test this line, I get a runtime error:
Method range of object global failed
Is there a maximum number of non-adjacent cells that can be selected at one time? Or should I create a variable for these cells? Or is there a better way all together?
Thanks so much!!
Mary