Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tc tc is offline
external usenet poster
 
Posts: 40
Default Macro to search for a text string

Hi. i need to create a macro that will search for a particular string.
is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default Macro to search for a text string

Something like this?
Dim sString as String
sString="WhateverYouAreLookingFor"
Cells.Find(What:=sString, After:=Range("A1"), LookIn:=xlFormulas,
LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext,
MatchCase:= _
False, SearchFormat:=False).Activate

tc wrote:
Hi. i need to create a macro that will search for a particular string.
is this possible?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Macro to search for a text string

tc

This is much less specific than the earlier and similar question you asked
(and didn't respond to). What would you like to do when you find this string?

Mike

"tc" wrote:

Hi. i need to create a macro that will search for a particular string.
is this possible?


  #4   Report Post  
Posted to microsoft.public.excel.programming
tc tc is offline
external usenet poster
 
Posts: 40
Default Macro to search for a text string

On Sep 11, 6:48 pm, Mike H wrote:
tc

This is much less specific than the earlier and similar question you asked
(and didn't respond to). What would you like to do when you find this string?

Mike



"tc" wrote:
Hi. i need to create a macro that will search for a particular string.
is this possible?- Hide quoted text -


- Show quoted text -


hi. to be more specific i need to search for a string named "Grand
Total" on a worksheet and then delete the entire row which contains
this value

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
Search If on text string bob Excel Worksheet Functions 3 February 15th 10 06:49 PM
Nested formula to search a text string and return specific text Barbie Excel Worksheet Functions 10 February 21st 09 07:40 AM
Search for a text string Dan Excel Discussion (Misc queries) 1 November 10th 08 09:09 PM
Text search within a string using formula esbee Excel Worksheet Functions 6 September 27th 07 06:11 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM


All times are GMT +1. The time now is 07:14 PM.

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"