Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Macro to find a word and copy all rows with this word to diff ws

I'm trying to create a macro to run a search based on info put into an input
box and copy all of the rows from column A to column M containing this info
and paste to a specific worksheet.

The worksheet that the info will be found in will always be the same format,
this info will always in the same columns but different & multple rows.

I hope that makes sense, any help would be greatly appreciated.

Thanks
Chas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro to find a word and copy all rows with this word to diff ws

You can filter and copy the visible cells
http://www.rondebruin.nl/copy5.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Chas" wrote in message ...
I'm trying to create a macro to run a search based on info put into an input
box and copy all of the rows from column A to column M containing this info
and paste to a specific worksheet.

The worksheet that the info will be found in will always be the same format,
this info will always in the same columns but different & multple rows.

I hope that makes sense, any help would be greatly appreciated.

Thanks
Chas

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Macro to find a word and copy all rows with this word to diff

Thanks for your response, however I can't auto filter because the text could
be within a string of text & the string of text won't always be the same. So
i need to find this text within a string of text then copy the row containing
that info.



"Ron de Bruin" wrote:

You can filter and copy the visible cells
http://www.rondebruin.nl/copy5.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Chas" wrote in message ...
I'm trying to create a macro to run a search based on info put into an input
box and copy all of the rows from column A to column M containing this info
and paste to a specific worksheet.

The worksheet that the info will be found in will always be the same format,
this info will always in the same columns but different & multple rows.

I hope that makes sense, any help would be greatly appreciated.

Thanks
Chas


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Macro to find a word and copy all rows with this word to diff

You can use Auto filter

For example

Criteria1:="=*ron*"

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Chas" wrote in message ...
Thanks for your response, however I can't auto filter because the text could
be within a string of text & the string of text won't always be the same. So
i need to find this text within a string of text then copy the row containing
that info.



"Ron de Bruin" wrote:

You can filter and copy the visible cells
http://www.rondebruin.nl/copy5.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Chas" wrote in message ...
I'm trying to create a macro to run a search based on info put into an input
box and copy all of the rows from column A to column M containing this info
and paste to a specific worksheet.

The worksheet that the info will be found in will always be the same format,
this info will always in the same columns but different & multple rows.

I hope that makes sense, any help would be greatly appreciated.

Thanks
Chas


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 from Word to Excel, and retain indent, plus word wrap Eric Excel Discussion (Misc queries) 1 March 9th 07 03:15 AM
macro to intsert a word using the "Find" command to search for a word Stuart[_3_] Excel Programming 1 November 29th 06 05:13 AM
search for a specific word and copy the word and the preceeding words until a comma DHANANJAY Excel Programming 12 December 31st 05 12:53 PM
how to add word to the front of every word in all rows automatica. Jasmine Excel Discussion (Misc queries) 8 October 10th 05 05:28 PM
Find word and copy Duncan_J Excel Programming 1 August 28th 04 11:47 PM


All times are GMT +1. The time now is 10:40 AM.

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"