LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default EXCEL: VBE code for a push-down stack (Date,Value1,.....)

Your code just needs to insert a row before you write to it.

Rows("1:1").Insert xlDown

I'd consider moving this to Access where the order of records doesn't
matter. You query the database and use an ORDER BY clause to determine how
the records are sorted.


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Joe Bailey" wrote:
| OK, what I mean by a push-down stack:
| Consider a list
| DATE AccountAlpha AccountBeta etc.....
| 03-Sep-06 14,262.00 5,447.00
| 02-Sep-06 11,197.00 5,317.00
| 01-Sep-06 12,117.00 5,326.00
|
| Today is the04-Sep-06, and todays account values need to be inserted at
the
| top of the list. Step 1 - push down stack; Step 2 Insert toays data
| DATE AccountAlpha AccountBeta etc.....
| vvvvvvvvv push-down stack vvvvvvv<<<< insert 04-Sep-06, 13767, 5842
| 03-Sep-06 14,262.00 5,447.00
| 02-Sep-06 11,197.00 5,317.00
| 01-Sep-06 12,117.00 5,326.00
|
| With the resulting updated stack now shows
| DATE AccountAlpha AccountBeta etc.....
| 04-Sep-06 13,767.00 5,842.00
| 03-Sep-06 14,262.00 5,447.00
| 02-Sep-06 11,197.00 5,317.00
| 01-Sep-06 12,117.00 5,326.00


 
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
Push Down Stack ? dhstein Excel Discussion (Misc queries) 3 July 27th 09 03:17 AM
Excel NPV initial cost in value1 and first year return in value2? Johanna Excel Worksheet Functions 3 September 12th 06 11:12 PM
Creating a stack to push/pull ranges John Wirt[_12_] Excel Programming 14 March 1st 06 08:40 AM
scatter plots and "label" as ("X" value1, value2) shabnam Charts and Charting in Excel 3 April 11th 05 02:24 PM
Out of space stack error, simple code? Neal Zimm Excel Programming 2 January 7th 05 01:35 PM


All times are GMT +1. The time now is 04:38 PM.

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"