View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Eric Eric is offline
external usenet poster
 
Posts: 1,670
Default How to copy specific number of rows from cells to cells?

What if I would like to copy a range V3:Z3,
For example
There is a given number in cell U1, which equals to 9, so
I would like to copy 9 rows starting from cell V3:Z3, which should copy from
V3:Z3 to V11:Z11 and paste text only into A3 to E11.

Does anyone have any suggestions?
Thank you very much for any suggestions
Eric


"Jacob Skaria" wrote:

Hi Eric

Try..

Range("V3").Resize(Range("U1").Value).Copy Range("A3")

--
Jacob (MVP - Excel)


"Eric" wrote:

There is a given number in cell U1, which equals to 9, so
I would like to copy 9 cells starting from cell V3, which should copy from
V3 to V11 and paste text only into A3 to A11.

If the given number in cell U1 is 6, then
I would like to copy 6 cells starting from cell V3, which should copy from
V3 to V11 and paste text only into A3 to A8.

Does anyone have any suggestions on how to code this macro in excel 2003?
Thanks in advance for any suggestions
Eric