Solved

MS Excel 2010 Data Entry - Display Current Data on Top

Posted on 2014-01-18
5
281 Views
Last Modified: 2014-01-20
Looking for the most simple way to create a data entry xls where the most recent entered data is displayed at the top of the list.

Data will be entered in columns A thru G of Row 1.  When user enters a Hot Key or click a Save button in column H then the Row 1 data should be moved to Row 4.  All the data that was stored in Row 4 and downwards would then be moved 1 row down.

So if data existed in Rows 4 thru 10 and a user entered and saved a new row in column 1 the ending result would be data in rows 4-11 with the most current entered data in row 4.  After moving the entered data from row 1 to row 4 the columns A-G in row 1 should be reset to blank.
0
Comment
Question by:dlpotlatch
  • 2
  • 2
5 Comments
 
LVL 18

Accepted Solution

by:
Steven Harris earned 500 total points
Comment Utility
Data will be entered in columns A thru G of Row 1

I am assuming you mean A1 through G1 is where the data will be entered:

Create a button (or other control object) in H1.  Use the following Macro:

Sub Button1_Click()
    Range("A1:G1").Copy
    Range("A4:G4").Insert Shift:=xlDown
    Range("A1:G1").ClearContents
End Sub

Open in new window


Example sheet attached.
Newest-First-Macro.xlsm
0
 

Author Closing Comment

by:dlpotlatch
Comment Utility
Works great, thanks for fast response.  We may have some future Excel technical questions/consulting requirements.   Would you consider taking some of these on for a fee per question basis ?
0
 
LVL 18

Expert Comment

by:Steven Harris
Comment Utility
Experts Exchange has a Job Board available.

You can also check for relevant qualifications via my profile.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
Comment Utility
Although the question is closed here is a method which I have been using which involves the worksheet_change trapper. You do not have to click a button or invoke a shortcut key.

As soon as you enter anything in row 1 to 4 and columns 1 to 7 that row is moved to row 5 and you can continue working in row 5.
Autoinsert.xlsm
0
 

Author Comment

by:dlpotlatch
Comment Utility
Thanks much for posting the worksheet_change method.  Can see where I could use this as well.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now