Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default macro to intsert a word using the "Find" command to search for a word

Just the same as the subject.

Need a macro to lookdown column A and find a word or two words hence I
think I need the Find command within the macro.

Hope someone can help

cheers

Stuart

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default macro to intsert a word using the "Find" command to search for a w

Substitute the word you want to find in place of YourWord and add the command
to do what you want to do where it says 'Do something with the word, if the
word is found.

With Worksheets(1).Columns("A")
Set c = .Find(YourWord, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
'Do something with the word
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With


"Stuart" wrote:

Just the same as the subject.

Need a macro to lookdown column A and find a word or two words hence I
think I need the Find command within the macro.

Hope someone can help

cheers

Stuart


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
How to have a macro simply issue the "find" command or "control f: Charles Adams Excel Programming 3 February 6th 09 06:34 PM
Repost--"Ignore spaces and tabs in word search" pikapika13[_26_] Excel Programming 1 August 11th 06 07:49 PM
Search for the word "continued", if found, delete that row + 10 rows above jriendeau5[_4_] Excel Programming 0 November 5th 04 03:00 PM
Search for the word "continued", if found, delete that row + 10 rows above jriendeau5 Excel Programming 1 November 5th 04 02:24 AM
Find the word "total" in a cell, delete row or column Lawlerd Excel Programming 1 October 20th 04 12:02 PM


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