View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz[_2_] JLGWhiz[_2_] is offline
external usenet poster
 
Posts: 1,565
Default variable rows to be copied

If it is just copying, then:

Range("C15:K15").Copy Range("C15:K20")


"tpeter" wrote in message
...
I have multiple tabs in one spreadsheet. When the user enters a tab I have
a
user form that asks for how many rows they would like to have. This could
range from 1-250. The textbox info is placed in cell m2. I don't know how
to
copy range c15:k15 the number of times it takes to meet the users request.
An
example would be if they entered 5 in the textbox, select range c15:k15
and
copy in down four times. Any help would be great.

Tim Peter