Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need help -- a Macro that searches for string in a cell range?


Hello --

I'm relatively new to Excel programming. Can someone here please point
me in the right direction? Here's what I need to do:

I have a 'Master Projects' worksheet, which lists all the projects
currently in our office, with notes on their various statuses and
project leaders.

I would like to create a separate worksheet for each project leader,
which will list ONLY projects that person is associated with based on
the contents of "Master Projects" (i.e., if the project name is cell
A2, this person's name would be in D2 of "Master Projects").

So, I need a Macro that scans column D of "Master Projects" and when it
finds a certain text string (the name) in row X, returns the value of
cell AX, and then continues onward to the end of the range specified.

My first question is, can this be done with Macros? If so, can anyone
offer me a tip on where to start? All the resources I am now finding
deal with recording Macros... which isn't exactly what I need right
now. Thanks so much!

Regards,
Mike


--
graphicGuy
------------------------------------------------------------------------
graphicGuy's Profile: http://www.excelforum.com/member.php...o&userid=33603
View this thread: http://www.excelforum.com/showthread...hreadid=533806

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Need help -- a Macro that searches for string in a cell range?

Hi Mike:

Consider using Autofilter rather than a macro. By filtering on person's name,
you generate separate tables for copy/paste

For a macro version of the same thing, use the macro recorder to get the
basics and enclose it in a loop.
--
Gary''s Student


"graphicGuy" wrote:


Hello --

I'm relatively new to Excel programming. Can someone here please point
me in the right direction? Here's what I need to do:

I have a 'Master Projects' worksheet, which lists all the projects
currently in our office, with notes on their various statuses and
project leaders.

I would like to create a separate worksheet for each project leader,
which will list ONLY projects that person is associated with based on
the contents of "Master Projects" (i.e., if the project name is cell
A2, this person's name would be in D2 of "Master Projects").

So, I need a Macro that scans column D of "Master Projects" and when it
finds a certain text string (the name) in row X, returns the value of
cell AX, and then continues onward to the end of the range specified.

My first question is, can this be done with Macros? If so, can anyone
offer me a tip on where to start? All the resources I am now finding
deal with recording Macros... which isn't exactly what I need right
now. Thanks so much!

Regards,
Mike


--
graphicGuy
------------------------------------------------------------------------
graphicGuy's Profile: http://www.excelforum.com/member.php...o&userid=33603
View this thread: http://www.excelforum.com/showthread...hreadid=533806


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
IF function that searches a range of cells for data and provide tr offdah3z Excel Worksheet Functions 2 August 13th 09 07:46 PM
Function that searches cell for string? IanMcGreene Excel Worksheet Functions 7 August 9th 06 11:49 PM
Getting valid web searches and avoiding sites that contaminate web searches David McRitchie New Users to Excel 1 June 13th 06 03:00 AM
which formula or function searches for a value in a range of cell. Roccobarocco Excel Worksheet Functions 5 December 3rd 04 12:06 PM
which formula or function searches for a value in a range of cell. Roccobarocco Excel Worksheet Functions 7 December 3rd 04 09:06 AM


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