Can you elaborate more on not replacing the value in the cell. I tried "result.address Not last result" but I'm not sure of what to right anyway. Thanks for your help and for sharing this info.
This is really what i was looking for but can you help me on how to find any words in word document from excel. Example: A command button in Excel sheet will open a word file and then search for the word i'm looking for and will bold or color the selected word.
How do you highlight the cells that contain the value found?
DominiqueDolly 5 months ago
Set result = .Find(What:=searchterm, After:=.Cells(1, 1), LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=MatchCase)
ReubenSnjente 7 months ago
Can you elaborate more on not replacing the value in the cell. I tried "result.address Not last result" but I'm not sure of what to right anyway. Thanks for your help and for sharing this info.
docjackson33 10 months ago
Comment removed
docjackson33 10 months ago
This is really what i was looking for but can you help me on how to find any words in word document from excel. Example: A command button in Excel sheet will open a word file and then search for the word i'm looking for and will bold or color the selected word.
mray1974 11 months ago
If I use .Cells(.Cells.Count) in the After setting the code bugs out with an overflow error, but If you change it to the (1, 1) cell it works fine.
So change the setting After:=.Cells(.Cells.Count) to After:=.Cells(1, 1)
lindejos 11 months ago
I keep getting an overflow error - number 6 with this code... not sure what the issue is as I have copied your code directly I think.
andoski99 1 year ago
Can you upload your code in a text file? I seem to be having problems. Thanks.
obesechicken13 1 year ago