PC Review


Reply
Thread Tools Rate Thread

Automatically adds a row

 
 
Tkaklita
Guest
Posts: n/a
 
      21st Aug 2009
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 With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      21st Aug 2009
Right click the sheet tab>View 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 With Quote
 
Tkaklita
Guest
Posts: n/a
 
      21st Aug 2009
This works fantastic!!! Thank you very much.

"Jacob Skaria" wrote:

> Right click the sheet tab>View 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 With Quote
 
Dav1d
Guest
Posts: n/a
 
      1st Dec 2009
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 tab>View 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form automatically adds new record David G. Microsoft Access 2 14th Aug 2009 05:53 PM
My spreadsheet in some cases automatically adds a row below how? dister Microsoft Excel Misc 5 7th Jul 2009 07:56 PM
Re: My spreadsheet in some cases automatically adds a row below how? Don Guillett Microsoft Excel Misc 0 7th Jul 2009 06:38 PM
Outlook adds 1 to contacts automatically aqueeb@gmail.com Microsoft Outlook Contacts 3 20th Apr 2007 03:14 AM
period adds spaces automatically =?Utf-8?B?RFJQ?= Microsoft Word Document Management 3 7th Mar 2006 02:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:02 AM.