LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default automate row insert to archive

I need some help automating a row insert from one sheet to a second sheet. I
think a macro is needed, but I'm not sure how to set one up as I've never
worked with them, nor do I know how to program it. I'd appreciate a little
help setting up the macro.

Basically, I retrieve my stock quotes into the Quote sheet, and it updates a
total amount. I want to archive the current date and amount to a Database
sheet. But there is an important twist. If there is already a row inserted
in the Database sheet with the same date, then I only want to update the
amount, not insert another row. Once the current date changes, then it is
okay to insert another row.

This is my data. Sheet Quote has the total amount. The amount is dynamic
and will change whenever my stock quotes update the prices of the securities.
Stock Price Amount
IBM $91.45 15000
MSFT $29.48 20000
------ -------- -------
Total 35000

Sheet Database stores the current date and current balance on the last row,
as well as archived dates and balances going back in time. Only the last row
with the current date is to be updated. The data is sorted in ascending date
as you can see.
Date Amount
11/24/06 30000
11/25/06 33000
11/26/06 34000
11/27/06 35000 ** This row can be updated multiple times
or a new row inserted below if date changes


 
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
Automate new Word file and insert autotext leaftye Excel Discussion (Misc queries) 2 November 7th 06 06:21 PM
Changing the Insert Row / Column Default Mr. Low Excel Discussion (Misc queries) 4 October 23rd 06 05:25 PM
How do I insert a row at the end of a table. Phyllis Excel Discussion (Misc queries) 3 September 26th 06 01:38 AM
insert picture BillGwyer Excel Discussion (Misc queries) 1 March 4th 05 06:37 PM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM


All times are GMT +1. The time now is 10:03 AM.

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

About Us

"It's about Microsoft Excel"