Closed Thread
Results 1 to 2 of 2

VBA Code That Inserts New Row Incorrectly Copies Formulas to Next Line

  1. #1
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    255

    VBA Code That Inserts New Row Incorrectly Copies Formulas to Next Line

    Here I am again with this stubborn VBA code.

    I thought I had the thing solved the other day, but I just realized that although the code does indeed insert a new row and copies the formulas to that new row, there is a small glitch......the formulas when copied do not have updated cell references. In the example below, the formulas in row 16 after being copied to the new row, still have references for row 16 and not row 17.

    Copied Formula Wrong.jpg

    I've tried to fix it, but my VBA chops are not that good and I have not found a solution.

    Thank you for any help.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: VBA Code That Inserts New Row Incorrectly Copies Formulas to Next Line

    You need to continue in the original thread, please: https://www.excelforum.com/excel-pro...-a-button.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA that copies and inserts new sheet and changes formulas
    By Jamidd1 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-12-2016, 11:11 AM
  2. For Loop Incorrectly copies
    By bssm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2016, 05:04 PM
  3. Macro that Copies and Inserts Without Overwriting
    By djrollt22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2015, 06:36 PM
  4. Excel VBA - Closing calendar in userform incorrectly inserts date in the textbox
    By pi_tiger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2015, 06:40 PM
  5. [SOLVED] code that copies formulas
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 05-01-2015, 07:44 PM
  6. Problem with macro that inserts a row, and copies formulas but not the values.
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-14-2010, 03:16 PM
  7. Create a Looping macro which copies and inserts rows
    By BenR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2007, 02:13 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