insert a row

  1. J

    Selecting individual cells

    Hello everyone! I'm hoping there's an easy way to select individual cells besides ctrl + click. Basically, I need to select individual cells with the TRUE value to insert a row in between them. Other than manually selecting the relevant cells, the closest I've gotten is using ctrl + F to find...
  2. Rijnsent

    VBA Insert Row - fails sometimes

    I have a bit of code that has been working fine for years, but now suddenly get feedback from some users that my error catching shows them "Insert method of range class failed". The simplified version of my code is the following: Sub AddLine() On Error GoTo ErrCatch Set Sht =...
  3. S

    Bug? Inserting Row (Keyboard Shortcut) doesn't add a row but instead moves all my formulas down one cell

    Hi all, I've only recently gotten this weird behavior out of Excel so I'm not sure what's going on. I press Ctrl+Shift+Plus and a row does not get inserted but all the formulas in the cells below the section I'm supposed to be inserting get stepped down by 1 cell. For example, if a cell below...
  4. C

    Inserting rows when value's are input into cells

    So I have a worksheet that has entry's for data for every day of the month. The layout repeats every 6 rows for the entire month. My goal is that when a value is entered into the last formatted cell in column E for a day then a row would be inserted below it copying the formatting of the row...
  5. S

    Adding a row after last instances of dates

    Hello again all. My brain hurts trying to figure out this one. I have a spreadsheet of all open orders, listed by date. I'm trying to find the last instance of a workday date, insert a row, format the row, and add text to the first cell. I can get the formatting part pretty easily, the tricky...
  6. J

    VBA Insert Row & Copy/Insert Specific Range From Row Above

    Currently using this simple "insert row and fill down" macro. I'd like to limit the fill to rows A-K of the row being copied down. Any help is appreciated, thanks! Sub InsertCopyOfPart() Application.ScreenUpdating = True Dim r As Long r = ActiveCell.Row With ActiveCell...
  7. L

    VBA Code to add in blank rows at a specific point, then do a formula in that blank row

    Hello - I'm looking for some help to create a VBA code macro. I have a report that I can export from our project/finance system that I need to manipulate a bit. This is a sample of what the raw data looks like (have of course modified some of the data for privacy) -...
  8. F

    Insert Copied Repeated rows under each Row - can it be done using a tool or vba?

    Hello, i have a column as seen below and another Column as seen below I need each row from Column A to have all possible values from criteria 2 to show as follows: Can we do it using an excel tool or VBA? since i will need to do this for 300 criteria 1 and 300 criteria 2 Thank you in...
  9. B

    Vba/macro. I know nothing help me

    hello I have a spreadsheet created by someone else that has a lot of codes etc . It is an invoice tracker that team members are INSERTING A NEW ROW when imputing a new invoice. This is done so that the new entry will have formulas applied like the other entries. A- I need to create a onetime...
  10. T

    Insert Lines Every nth Row

    Hello, I year ago I asked this question and I got a great answer but now I need some help creating a conditional statement within the code: The code below will in its current state insert "x" amount of rows dependent on the specified "row interval." Sub InsertRowsAtIntervals() 'Updateby...
  11. Q

    "If not intersect" question

    I have a line of code to trigger a macro when a cell in specified column range is selected: If Target <> "" And Not Intersect(Target, Range("D6:D1048576")) Is Nothing Then Is there a simple modification I can make so the macro will not be triggered when I insert a new row?
  12. H

    Problems Inserting Rows

    Hi I am creating a spreadsheet where people will fill in details for certain things, my idea is to have them add rows as they go to each of the tables within the worksheet. However, when they add rows to the first table, this now means that the insert point I chose for the following tables is...
  13. B

    Need program to move to insert row

    Hey new to macros. My issue, I want my macro to loop through a number of cells on sheet1 and then transfer the entries into specific cells onto sheet2. On sheet2 column A, I want specific headings to be printed based on whether or not the values in sheetA1 are different. Visual aid: Sheet 1...
  14. J

    Copy and Paste dynamic range

    I've got a workbook with 48 used columns. Of those 48 used columns I need to select and copy a range covering the contiguous first 29 columns. I need to be able to select which row to start the range on by using an inputbox and a find/match loop until the given string is found and a cell address...
  15. T

    VBA to insert rows based on cell value compared to array

    After commenting on this thread, I was advised to post a new question. I am writing a macro to insert rows in a sheet based on whether the first part of the value in colA corresponds to a certain value in an array. Initially, I had the array fill into G3:G15 as text, then the sub compared the...
  16. S

    Inserting Row to Table Using VBA

    I have a code that inserts an entire new row and copies the contents from above row. I was hoping to edit the code to insert a row and have it be apart of a table, not just a new row under the table. Any suggestions on how to do this? Private Sub Worksheet_BeforeDoubleClick(ByVal Target As...
  17. S

    VBA: Insert row + keep formulas

    Hi all, I already read some threads in this big forum but didn't find what I am looking for. I hope it is ok to ask for some help on this: I have a table and a button to click in A1. If I click this button, a new row shall be inserted below the current active cell including only the above used...
  18. N

    Excel Power Query dynamically inserting rows

    Hi all, I need to dynamically insert a row into a table based on a cell value. I'm able to insert the row, but I haven't figured out how to make it dynamic. The row will always go above the row with the value "2270PBAKE" in the STAGE column. I'm using the Table.InsertRows function. For the...
  19. K

    VBA code to insert a variable # of rows between each existing row matching certain criteria. Help please!

    Hello, I need some help on VBA, please. I've inlcuded an short example below of what I am trying to achieve. I am trying to figure out the VBA to insert a variable number of rows (based on the value in Settings!C13) between existing rows on the worksheet 'UNIT_PRICE_COMP'. Some rows are...
  20. D

    Simplify Repetitive Code

    I have the following code: Selection.End(xlDown).Select Selection.ListObject.ListRows.Add AlwaysInsert:=True Selection.ListObject.ListRows.Add AlwaysInsert:=True Selection.ListObject.ListRows.Add AlwaysInsert:=True Selection.ListObject.ListRows.Add AlwaysInsert:=True...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top