Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Automatically adds a row

Is it possible to create a program that will automatically add a row above
the row you are entering information on so that each row of info keeps moving
downwards?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Automatically adds a row

Right click the sheet tabView code and Paste the below code...and try
entering values in Column A...Adjust to suit...Try and feedback

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("A:A")) Is Nothing Then
Rows(Target.Row).Insert: Target.Offset(-1, 0).Select
End If
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Tkaklita" wrote:

Is it possible to create a program that will automatically add a row above
the row you are entering information on so that each row of info keeps moving
downwards?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Automatically adds a row

This works fantastic!!! Thank you very much.

"Jacob Skaria" wrote:

Right click the sheet tabView code and Paste the below code...and try
entering values in Column A...Adjust to suit...Try and feedback

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("A:A")) Is Nothing Then
Rows(Target.Row).Insert: Target.Offset(-1, 0).Select
End If
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Tkaklita" wrote:

Is it possible to create a program that will automatically add a row above
the row you are entering information on so that each row of info keeps moving
downwards?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Automatically adds a row

This was fabulous, thank you so much for posting it.

Can anyone guide me on what would need to be added to the code to retain the
formatting (merged cells) and the formulas in some of the cells (If, thens)

What a great community this is!


"Jacob Skaria" wrote:

Right click the sheet tabView code and Paste the below code...and try
entering values in Column A...Adjust to suit...Try and feedback

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("A:A")) Is Nothing Then
Rows(Target.Row).Insert: Target.Offset(-1, 0).Select
End If
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Tkaklita" wrote:

Is it possible to create a program that will automatically add a row above
the row you are entering information on so that each row of info keeps moving
downwards?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My worksheet automatically adds a fill color when I enter text. K Sommer Excel Discussion (Misc queries) 1 March 18th 10 06:18 PM
My spreadsheet in some cases automatically adds a row below how? dister Excel Discussion (Misc queries) 6 July 7th 09 07:56 PM
How to set up a formula that it adds value on a certain date LoriKLynn Excel Discussion (Misc queries) 5 October 15th 07 11:54 PM
Adds ok but try to sum() returns 0 Steved Excel Worksheet Functions 6 December 7th 06 01:24 PM
pop-up adds sg Excel Programming 1 June 15th 04 03:06 AM


All times are GMT +1. The time now is 06:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"