+ Reply to Thread
Results 1 to 2 of 2

macro that inserts a row

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    macro that inserts a row

    Any help would be appreciated
    I have a macro that uses a command button to insert another row at the top of a sheet.

    I would like it to copy the top two rows of the sheet as well as any formatting. without the contents.
    and then add those 2 rows to the top.

    Here is the one that I have started with.

    Please Login or Register  to view this content.
    Thanks for any help

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: macro that inserts a row

    There are more efficient ways to do it, but I think this is the easiest to understand for someone who is not a wizard with VBA.

    Please Login or Register  to view this content.
    If you want to only do it on SHEET1, then that needs to be explicitly added on, otherwise this will run on the active sheet. In other words if the button is on another sheet, then add the sheetname, otherwise you are good.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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. 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
  2. Macro that Inserts a row in between rows (with formulas etc)
    By How How in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-14-2013, 07:49 AM
  3. [SOLVED] creating a macro that inserts the current date in the same cell everytime the macro is run
    By katie1994 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2012, 07:59 PM
  4. [SOLVED] Macro that inserts lines reply
    By Esrei in forum Excel General
    Replies: 2
    Last Post: 05-13-2005, 01:06 PM
  5. Macro that inserts lines
    By Esrei in forum Excel General
    Replies: 1
    Last Post: 05-09-2005, 09:06 AM
  6. Inserts a new line with a macro
    By Vicki in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-07-2005, 12:54 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