+ Reply to Thread
Results 1 to 3 of 3

Thread: Fill down during macro

  1. #1
    Registered User
    Join Date
    11-24-2010
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Red face Fill down during macro

    Hello All

    Hopefully someone can help with this issue.

    I have a large spreadsheet that runs from A:AN there are a number of columns hidden.

    I am wanting to run a macro each day that will take formulas that are in AI:AN (AE is the column visible before AI as rest are hidden) and fill down to the last record (num of records will increase daily) current number of rows is 136129.

    Any more info needed to help me I with this let me know.

    Cheers
    K

  2. #2
    Forum Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    3.0
    Posts
    2,472

    Re: Fill down during macro

    Hi,

    This should do what you need....

    Range("AI1:AN1").AutoFill Destination:=Range("AI1:AN" & ActiveSheet.UsedRange.Rows.Count), Type:=xlFillDefault
    Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.

  3. #3
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,627

    Re: Fill down during macro

    look at the Excel VBA help files for FillDown
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0