View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Melanie Breden Melanie Breden is offline
external usenet poster
 
Posts: 88
Default Macro to copy down specific number of rows

Cell A1 contains Username and cell B1 contains a number
indicating how many times the names should be replicated
in the database.


try this:

Range("A2:A" & Range("B1").Value).Value = Range("A1").Value

--
Mit freundlichen Grüssen

Melanie Breden
- Microsoft MVP für Excel -

http://excel.codebooks.de (Das Excel-VBA Codebook)