thumbtwiddler
IS-IT--Management
Wondering if anyone can help. Have searched through and struggling to find this.
Going through some old proformas removing copy / paste values in the code and replacing with application.range("X") = application.range("Y").value to speed them up.
My problem is when (in the above example), X is a single cell and Y is a dynamic range of cells.
If you use copy / paste value, it would select cell X and paste across and down the same area as range Y but using =.value seems to only affect the single cell X rather than pasting the range in meaning almost all of range Y is unused.
I can go through and create temp named ranges that are the same size and then delete them but was wondering if anyone knew a better way of doing this?
If not, can anyone tell me what is the best approach for defining the size of Range Y when it is dynamic (ie, xlDown kind of situation) to then define the range starting from cell X for creating a temp name range. Looking at tagging start and end cells and then calculating the col / row from these but not sure if there's a better way of doing this.
Hope that makes sense - TIA
Going through some old proformas removing copy / paste values in the code and replacing with application.range("X") = application.range("Y").value to speed them up.
My problem is when (in the above example), X is a single cell and Y is a dynamic range of cells.
If you use copy / paste value, it would select cell X and paste across and down the same area as range Y but using =.value seems to only affect the single cell X rather than pasting the range in meaning almost all of range Y is unused.
I can go through and create temp named ranges that are the same size and then delete them but was wondering if anyone knew a better way of doing this?
If not, can anyone tell me what is the best approach for defining the size of Range Y when it is dynamic (ie, xlDown kind of situation) to then define the range starting from cell X for creating a temp name range. Looking at tagging start and end cells and then calculating the col / row from these but not sure if there's a better way of doing this.
Hope that makes sense - TIA