+ Reply to Thread
Results 1 to 6 of 6

Macro to fill down

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Macro to fill down

    Hi-

    Currently I am using my macro to import my data and it feeds into the tab called 'Eze Comp P&L'. I have linked up formulas in tab 'P&l Estimates April '14'. Instead of having to go into the 'P&l Estimates April '14' tab daily after pulling in my data and doing a control D in columns B-G to to fill in the most recent day, what can I do? Is there some code i can right in macro tDaily Performance Report 4.22.14.xlsmo do this for me? Also in column F/G row 25, is there a way for code to also move that to most recent day?

    Thank you

  2. #2
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Macro to fill down

    any thoughts?

    Thanks

  3. #3
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Macro to fill down

    if you need me to give any more info, please let me know

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to fill down

    Does this help?

    Sub carticaaabbcczz()
    Sheets("P&L Estimates April '14").Range("B3").End(xlDown)(1).Copy
    Sheets("P&L Estimates April '14").Range("B3").End(xlDown)(2).PasteSpecial xlPasteFormulas
    Sheets("P&L Estimates April '14").Range("C3").End(xlDown)(1).Copy
    Sheets("P&L Estimates April '14").Range("C3").End(xlDown)(2).PasteSpecial xlPasteFormulas
    Sheets("P&L Estimates April '14").Range("D3").End(xlDown)(1).Copy
    Sheets("P&L Estimates April '14").Range("D3").End(xlDown)(2).PasteSpecial xlPasteFormulas
    Sheets("P&L Estimates April '14").Range("E3").End(xlDown)(1).Copy
    Sheets("P&L Estimates April '14").Range("E3").End(xlDown)(2).PasteSpecial xlPasteFormulas
    Sheets("P&L Estimates April '14").Range("F3").End(xlDown)(1).Copy
    Sheets("P&L Estimates April '14").Range("F3").End(xlDown)(2).PasteSpecial xlPasteFormulas
    Sheets("P&L Estimates April '14").Range("G3").End(xlDown)(1).Copy
    Sheets("P&L Estimates April '14").Range("G3").End(xlDown)(2).PasteSpecial xlPasteFormulas
    Sheets("P&L Estimates April '14").Range("F25").Formula = "=F" & Range("F3").End(xlDown)(1).Row
    Sheets("P&L Estimates April '14").Range("G25").Formula = "=G" & Range("G3").End(xlDown)(1).Row
    End Sub

  5. #5
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: Macro to fill down

    Hi...Thank you. The b-g copy/paste special work. The below does not work. In F25 the cell populates with f=432, and g=432. Any ideas?

    Sheets("P&L Estimates April '14").Range("F25").Formula = "=F" & Range("F3").End(xlDown)(1).Row
    Sheets("P&L Estimates April '14").Range("G25").Formula = "=G" & Range("G3").End(xlDown)(1).Row

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to fill down

    Worked when I tested it on your sample.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to fill macro down ?
    By smiso24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2012, 06:58 PM
  2. Excel 2007 : Fill down during macro
    By Kinish in forum Excel General
    Replies: 2
    Last Post: 11-25-2010, 07:04 AM
  3. Fill Down Macro help.
    By IGinc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2009, 09:17 AM
  4. Fill Down macro
    By majormojo656 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2006, 02:22 AM
  5. Fill Macro
    By benb7760 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-16-2005, 05:21 PM

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