Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default first Autofiltering, then subtotal one column, copy value to first row and delete rest

Hey I have a question..I am totally new to excel programming and this
is what I want to do..

1. I want to first autofilter bsaed on criteria
2. Subtotal all the values visible in Column 7 and copy them to first
visible row after filtering
3. delete rest of the rows (after first one).

All I have gotten done is: filtering right now
Selection.AutoFilter Field:=3, Criteria1:=FilterCriteria
ActiveSheet.AutoFilter.Range.Offset(1, 6).Select
Selection.Subtotal GroupBy:=7, Function:=xlSum,
TotalList:=Array(7), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True **This
doesnt work***

If I try to loop to visible cells by using offset(1,0) that acutally
takes me to non-filtered cells.

Any helps is appreciated.

Thanks much.

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
Copy column header to next column, delete & delete every nth colum genehunter New Users to Excel 1 June 2nd 09 03:57 PM
how to select the first character in a cell and delete the rest Helenf Excel Worksheet Functions 4 May 14th 09 12:10 PM
Unable to copy the merged cell to the rest of the column redrxturbo Excel Worksheet Functions 3 April 21st 07 08:05 PM
how to keep the first initial of a name &delete the rest in cell mark Excel Discussion (Misc queries) 2 February 28th 07 05:35 PM
subtotal copy-paste and delete hidden rows Winslow Excel Discussion (Misc queries) 1 December 12th 06 03:26 PM


All times are GMT +1. The time now is 06:32 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"