#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default sum format

Is there a way that i would be able to insert a row into a worksheet through
vba with a certain format and be able to summ all the rows above. Each time
i insert this row i want to be able to sum the values between it and the last
inserted row. Anyone know how to do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default sum format

I'm sure that there would be.

But is there a reason you don't want to use Data|Subtotals? It might be
sufficient and it's built into excel.

enyaw wrote:

Is there a way that i would be able to insert a row into a worksheet through
vba with a certain format and be able to summ all the rows above. Each time
i insert this row i want to be able to sum the values between it and the last
inserted row. Anyone know how to do this?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default sum format

When the information is all calculated i need the formulas left on the
worksheet so if i need to change any of the figures after the information is
inputted i can recalculate the totals.

"Dave Peterson" wrote:

I'm sure that there would be.

But is there a reason you don't want to use Data|Subtotals? It might be
sufficient and it's built into excel.

enyaw wrote:

Is there a way that i would be able to insert a row into a worksheet through
vba with a certain format and be able to summ all the rows above. Each time
i insert this row i want to be able to sum the values between it and the last
inserted row. Anyone know how to do this?


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default sum format

Data|Subtotal inserts formulas that look like =subtotal().

If you insert/delete rows, you may need to remove the subtotals and reapply.
But that would apply to the macro code, too.

enyaw wrote:

When the information is all calculated i need the formulas left on the
worksheet so if i need to change any of the figures after the information is
inputted i can recalculate the totals.

"Dave Peterson" wrote:

I'm sure that there would be.

But is there a reason you don't want to use Data|Subtotals? It might be
sufficient and it's built into excel.

enyaw wrote:

Is there a way that i would be able to insert a row into a worksheet through
vba with a certain format and be able to summ all the rows above. Each time
i insert this row i want to be able to sum the values between it and the last
inserted row. Anyone know how to do this?


--

Dave Peterson


--

Dave Peterson
Reply
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
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
Adding time in 24 hour format to produce hours in decimal format Hercdriver Excel Worksheet Functions 11 December 29th 09 02:06 AM
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM
Keep format after paste from other worksheets - conditional format or EnableControl solution doesn't work No Name Excel Programming 0 May 3rd 04 12:22 PM


All times are GMT +1. The time now is 06:58 AM.

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

About Us

"It's about Microsoft Excel"