Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: copying cells a set no. of times

  1. #1
    Guest

    Default

    Want to copy a cell which contains a formulae down a colume a certain no. of times x.

  2. #2
    MrExcel MVP Barrie Davidson's Avatar
    Join Date
    Feb 2002
    Location
    Winnipeg
    Posts
    2,330
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-02-19 07:40, Anonymous wrote:
    Want to copy a cell which contains a formulae down a colume a certain no. of times x.
    I assume you want to do this in VBA. The following code will copy the formula in cell A1 to twelve rows in column B starting at column B1.
    Code:
    Dim i As Integer
    i = 12
    Range("A1").Copy Destination:=Range("B1").Range("A1:A" & i)
    Just make changes as required.
    Barrie Davidson

    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •