Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike Woodard
 
Posts: n/a
Default Copy/Paste Rows that Contain Specific Text


Hi,

I'm trying to write a macro that will bring up a text box to ask the user
what he/she is looking for (always text). The macro then looks through a
monster sheet of 7000 rows and copies every row that contains the text
string in column G, then deposits the rows at the bottom of the sheet. The
text string being searched for is a short piece within a longer string (ie.
'review' within 'project review').

I've used autofilters in the past but it takes forever to go through the
filters method for the 50 or so text strings I have to look up. Each time I
got a match I had to copy the filtered rows, scroll to the bottom of the
sheet, then paste. Repeat, repeat, repeat...

I had success with bits and pieces of my macro but I can't seem to get them
to all work together at the same time. I know that a savvy individual can
write this with only a short piece of code - not me (yet hopefully).

Thanks!
Mike


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike Woodard
 
Posts: n/a
Default Copy/Paste Rows that Contain Specific Text

Cancel this request. I reposted it to the correct (programming) group.
Thanks!

"Mike Woodard" wrote in message
...

Hi,

I'm trying to write a macro that will bring up a text box to ask the user
what he/she is looking for (always text). The macro then looks through a
monster sheet of 7000 rows and copies every row that contains the text
string in column G, then deposits the rows at the bottom of the sheet.
The text string being searched for is a short piece within a longer string
(ie. 'review' within 'project review').

I've used autofilters in the past but it takes forever to go through the
filters method for the 50 or so text strings I have to look up. Each time
I got a match I had to copy the filtered rows, scroll to the bottom of the
sheet, then paste. Repeat, repeat, repeat...

I had success with bits and pieces of my macro but I can't seem to get
them to all work together at the same time. I know that a savvy
individual can write this with only a short piece of code - not me (yet
hopefully).

Thanks!
Mike



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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Counting rows containing data (both numbers and text) mconnolly Excel Worksheet Functions 4 August 29th 05 03:58 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Import only certain rows of a huge text file AriBari Excel Discussion (Misc queries) 4 July 11th 05 06:54 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM


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