+ Reply to Thread
Results 1 to 3 of 3

Using VBA to add and delete rows

  1. #1
    Registered User
    Join Date
    01-09-2015
    Location
    New York, US
    MS-Off Ver
    2010
    Posts
    2

    Using VBA to add and delete rows

    Can someone help me with the formula used to create the functions for adding and deleting rows on the attached worksheet i.e. the one marked "add operator" and "remove last operator". I manage to create the one for adding the rows, but cant figure out how to create the one for removing the rows. The problem is that the formula for removing does not stop to remove the rows. I want to only remove additional rows that have added (like the worksheet attached) so that it does not mess the other formulas or rows.

    Here is the vba code I am using for adding the rows;

    Please Login or Register  to view this content.
    Many thanks
    Attached Files Attached Files
    Last edited by JBeaucaire; 01-09-2015 at 01:22 AM. Reason: Added missing code tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using VBA to add and delete rows

    Hi and welcome to the forum,

    If you want help with protected sheets and a protected VBE then you will need to give us the passwords.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-09-2015
    Location
    New York, US
    MS-Off Ver
    2010
    Posts
    2

    Re: Using VBA to add and delete rows

    Richard - Thanks for the reply, unfortunately this is a sheet I am trying to copy. I don't have the passport, but I am looking to create something like that

+ 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] Delete blank rows between data rows, shift rows up, then repeat
    By excelactuary in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 11:53 AM
  2. Replies: 5
    Last Post: 11-12-2012, 08:38 PM
  3. Macro to delete certain columns and delete rows based on time in another column
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2012, 11:47 AM
  4. delete duplicate rows, delete empty rows
    By loade in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-03-2012, 05:42 AM
  5. Delete Rows by Cell Value - Delete sheets w/out prompt
    By Jimmydageek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2010, 02:03 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