+ Reply to Thread
Results 1 to 2 of 2

Code to add rows with formulas needs fixing

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Code to add rows with formulas needs fixing

    Im and having some issues with the following code which adds rows in-between my records, (below the active cell). The code keeps the formulas in the A, B, C, and F columns.
    Please Login or Register  to view this content.
    The user enters the number of rows to be added into tbRowAdd on the userform. If just one row is being added it works fine, however when more that one row is added it doesn't function correctly. Cells D and E from the second new row on dont get cleared.

    I have also attached my workbook. The button Add Rows to run the userform is on the ReturnData sheet.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Code to add rows with formulas needs fixing

    modify those 2 lines of code like this:
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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. [SOLVED] Fixing the VBA code
    By brownie4321 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2012, 09:35 AM
  2. Fixing Formulas
    By hami812 in forum Excel General
    Replies: 2
    Last Post: 12-08-2011, 01:41 PM
  3. Fixing cells in R1C1 formulas in VBA Query
    By Jessica.Bush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2011, 11:58 AM
  4. VBA code for Hyperlink fixing
    By narendra1302 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2010, 06:01 AM
  5. fixing code
    By timmy64 - ExcelForums.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2005, 04:48 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