+ Reply to Thread
Results 1 to 2 of 2

Fill set number of cells based on cell value

Hybrid View

  1. #1
    Registered User
    Join Date
    09-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Fill set number of cells based on cell value

    Is there any way to use 'Fill' over a certain number of cells?
    I mean, instead of selecting for instance, 21 cells and doing ctrl+d, could I just select the cell and get excel to fill 21 cells?
    Even better, is there a way of filling a number of cells based on a value in a cell? For instance, if 15 is written in one cell, could excel be made to fill text over 15 cells?

    Thanks,

    Harvey

  2. #2
    Registered User
    Join Date
    08-20-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Fill set number of cells based on cell value

    I did something similar a while ago where it fills down aslong as there is a value in the column to the left of it.

    Sub Macro1()
    Range("c1").Select
    Selection.Copy
    ActiveCell.Offset(0, -1).Select
    Selection.End(xlDown).Select
    ActiveCell.Offset(0, 1).Select
    Range(Selection, Selection.End(xlUp)).Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    End Sub
    Don't know if this will be of any use.

    I have also attached a sample workbook.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1