Solved

MS Excel 2010 Data Entry - Display Current Data on Top

Posted on 2014-01-18
5
312 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
ID: 39791288
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
ID: 39791319
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
ID: 39791368
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
ID: 39791759
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
ID: 39794469
Thanks much for posting the worksheet_change method.  Can see where I could use this as well.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

685 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