+ Reply to Thread
Results 1 to 14 of 14

Automatically Insert Row and Copy Formulas Down

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    37

    Automatically Insert Row and Copy Formulas Down

    I am working on a spreadsheet for my office. My goal is for the staff to use a shortcut key to insert a row and copy of the all the formulas down to the newly inserted row. I have tried VBA and macros from old posts, but I can't seem to get it to work. Let me know if you need additional information to assist me. Thank you so much.

  2. #2
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Automatically Insert Row and Copy Formulas Down

    Dear AndreaJean18,

    Please attach sample workbook with desired output.
    Regards,
    Nandkumar S.
    ---------------------------------------------------------------
    Don't forget to Click on * if you like my solution.

  3. #3
    Registered User
    Join Date
    04-15-2014
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Automatically Insert Row and Copy Formulas Down

    How do I attach so that only you can see it?
    Last edited by AndreaJean18; 08-07-2014 at 07:06 AM.

  4. #4
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Automatically Insert Row and Copy Formulas Down

    How do I attach so that only you can see it?
    All forum readers can see your post.

    How do I attach a file to a post?


    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'. To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments. You can upload an attachment either from your computer or from another URL by using the appropriate box on this page. Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file. To upload a file from another URL, enter the full URL for the file in the second box on this page. Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window. You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    04-15-2014
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Automatically Insert Row and Copy Formulas Down

    Attached is the file. Under the Andrea tab, a user will add a row anywhere on the sheet and the formulas from the above row will automatically copy down. I would also like the data in the first five columns to copy down automatically as well.
    Attached Files Attached Files

  6. #6
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Automatically Insert Row and Copy Formulas Down

    Dear AndreaJean18,

    try below code, (for assign shortcut to code see link http://www.wiseowl.co.uk/blog/s139/s...cros-excel.htm

    Please Login or Register  to view this content.
    Last edited by satputenandkumar0; 08-07-2014 at 09:38 AM. Reason: Made Faster

  7. #7
    Registered User
    Join Date
    04-15-2014
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Automatically Insert Row and Copy Formulas Down

    I get this error:
    Attached Files Attached Files

  8. #8
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Automatically Insert Row and Copy Formulas Down

    Dear AndreaJean18,

    You have left incomplete code there. Delete that code and try.

    I have edited code in post #6 for faster result.

  9. #9
    Registered User
    Join Date
    04-15-2014
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Automatically Insert Row and Copy Formulas Down

    That works great! Is there also a way to copy the text down from the first five columns as well?

  10. #10
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Automatically Insert Row and Copy Formulas Down

    Is there also a way to copy the text down from the first five columns as well?
    you can try below also
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-15-2014
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Automatically Insert Row and Copy Formulas Down

    Ok, I'm new at this. So do I replace that line, see below:


    Sub insertrow()
    Application.Calculation = xlCalculationManual
    Dim Actrow As Long: Actrow = ActiveCell.Row
    ActiveCell.EntireRow.Insert shift:=xlDown
    For i = 1 To 5
    Cells(Actrow, i).FillDown
    Next i
    For i = 6 To 85
    If Cells(Actrow - 1, i).HasFormula = True Then
    Range(Cells(Actrow, 1), Cells(Actrow, 5)).FillDown
    End If
    Next i
    Application.Calculation = xlCalculationAutomatic
    End Sub

  12. #12
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Automatically Insert Row and Copy Formulas Down

    Below code is for Insert row with first five column copy down.

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    04-15-2014
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Automatically Insert Row and Copy Formulas Down

    I got it to work. Thank you, thank you, thank you. I really appreciate your help with this.
    Last edited by AndreaJean18; 08-07-2014 at 09:44 AM.

  14. #14
    Forum Contributor satputenandkumar0's Avatar
    Join Date
    11-08-2012
    Location
    Pune, India
    MS-Off Ver
    Office xp & Office 2007
    Posts
    398

    Re: Automatically Insert Row and Copy Formulas Down

    I have already posted in post #6. Please check

+ 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. Replies: 0
    Last Post: 08-01-2013, 12:18 PM
  2. Formula to Insert Rows + automatically copy formulas.
    By Jaspal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2013, 08:12 AM
  3. automatically insert row after last entry with formulas
    By sherrie777 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-18-2010, 02:19 PM
  4. Insert Row and Formulas automatically drag down
    By Sean Anderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2007, 05:35 PM
  5. Macro to insert copy and insert formulas only to next blank row
    By bob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-30-2006, 07:10 AM

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