Basic question - Move blank rows down (rows below table)

mdwasim

New Member
Joined
Dec 31, 2019
Messages
14
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone,

Not sure if there is any feature available for what I am trying to achieve.

I have 2 excel Tables (table1 and table2) stacked one above other.
With space of 2 rows left as spacer in between.

If I click "Tab" in last row and last cell of table, a new table row is inserted.
But, the row takes the place of spacer row.

I am trying to move all content below when a row is inserted.

is there any way to make this happen?

Thank you.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Google "VBA LastRow" .. or search on this Forum for same.

Then you'll be selecting LastRow + 2 for the next entry in Col A
 
Upvote 0
May be I did not put the question correctly.
When I use "Tab" key in Yellow cell the table row is added in the spacer row.
I am trying to find out, if we can move the content below "table1" down when row is added to it.
This is just an example with 1 table below, there can be 3-4 tables below table 1.
1986.jpg
 
Upvote 0
.
Ok ... let's try this. Hopefully I now understand what you are attempting to do.

Paste this macro in a Regular Module :

VBA Code:
Option Explicit

Sub LastRowTable()
    ActiveCell.EntireRow.Offset(1).Resize(1).Insert Shift:=xlDown
End Sub


Paste this macro in the Sheet1 Module (assuming your Tables are located on Sheet1) :

VBA Code:
Option Explicit

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Application.OnKey "{TAB}", ""
        
    If ActiveCell.Column = 5 Then
       Call LastRowTable
    End If
    
    Application.OnKey ("{TAB}")

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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