Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
pk pk is offline
external usenet poster
 
Posts: 27
Default Using "Find"

Hello, I hope someone can help me with this, please.

I am using VBA in Excel XP with Windows 2000.

I apologize in advance for the length of this request.

I need to build some code that will do the following
using "Find". I wish to use "Find" because I am working
with large spreasheets (20,000 to 40,000 rows; 20 to 50
columns) and I think "Find" runs faster than anything else.

Data is imported using DAO into a sheet. In a column there
may be 30 to 60 or more dynamic transaction types, these
types are variable and not all appear everytime, so my
code needs to be dynamic. First transaction type always
appears in "E2" to start (below header row).

1. Use find to locate the LAST occurrence in the column of
the first transaction type. Among other things, it will
insert a couple blank rows beneath the last occurrence to
separate the data in the sheet by tran-type.

2. Code would then locate the LAST occurrence of the next
transaction type and repeat requirements of step 1 above.

3. Repeat these procedures until all transaction types
have been processed.

Your example code would be most appreciated. Thanks in
advance for your assistance on this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using "Find"

I assume the transaction types are grouped. I would use the built in
Subtotal function under the data menu.

This will put subtotals below each transaction types if you select that as
the grouping column. You can then Delete those subtotals and remove the
outlining on the left. Then use specialcells(xlblanks) to reference these
subtotal rows and insert additional.

Turning on the macro recorder while doing it manually will give you the
basic code you need.

--
Regards,
Tom Ogilvy

"pk" wrote in message
...
Hello, I hope someone can help me with this, please.

I am using VBA in Excel XP with Windows 2000.

I apologize in advance for the length of this request.

I need to build some code that will do the following
using "Find". I wish to use "Find" because I am working
with large spreasheets (20,000 to 40,000 rows; 20 to 50
columns) and I think "Find" runs faster than anything else.

Data is imported using DAO into a sheet. In a column there
may be 30 to 60 or more dynamic transaction types, these
types are variable and not all appear everytime, so my
code needs to be dynamic. First transaction type always
appears in "E2" to start (below header row).

1. Use find to locate the LAST occurrence in the column of
the first transaction type. Among other things, it will
insert a couple blank rows beneath the last occurrence to
separate the data in the sheet by tran-type.

2. Code would then locate the LAST occurrence of the next
transaction type and repeat requirements of step 1 above.

3. Repeat these procedures until all transaction types
have been processed.

Your example code would be most appreciated. Thanks in
advance for your assistance on this.



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
"Find" a wildcard as a place marker and "replace" with original va Eric Excel Discussion (Misc queries) 1 January 27th 09 06:00 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How to change the default in Excel from "find next" to "find all" igs Excel Discussion (Misc queries) 0 November 27th 06 06:20 PM
SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="") redneck joe Excel Discussion (Misc queries) 5 August 18th 06 08:31 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM


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