Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to have a macro simply issue the "find" command or "control f: | Excel Programming | |||
Repost--"Ignore spaces and tabs in word search" | Excel Programming | |||
Search for the word "continued", if found, delete that row + 10 rows above | Excel Programming | |||
Search for the word "continued", if found, delete that row + 10 rows above | Excel Programming | |||
Find the word "total" in a cell, delete row or column | Excel Programming |