Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I try to find in a worksheet all formulas which contains the carracters
"hfm" or "HFM". The second step is to replace all this formulas by their values. Does anyone know how to search for a small part of a formula ??? thanks in advance |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
After clicking on Edit, then Find, click on the Options button on the Find
dialog. That exposes more functionality. You can selete whether to search just the worksheet or the whole book. The bottom left dropdown, "Look In" lets you select whether to search values for formulas. Be sure the "match entire cell contents" check box is not selected. HTH, Mark VII "Gert" wrote: I try to find in a worksheet all formulas which contains the carracters "hfm" or "HFM". The second step is to replace all this formulas by their values. Does anyone know how to search for a small part of a formula ??? thanks in advance |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub hfm_killer()
Dim r As Range, s As String For Each r In ActiveSheet.UsedRange If r.HasFormula Then s = r.Formula If InStr(UCase(s), "HFM") Then r.Value = r.Value End If End If Next End Sub -- Gary's Student "Gert" wrote: I try to find in a worksheet all formulas which contains the carracters "hfm" or "HFM". The second step is to replace all this formulas by their values. Does anyone know how to search for a small part of a formula ??? thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help With Searching For Strings In Part Numbers | Excel Worksheet Functions | |||
Searching for specific text - how to | Excel Worksheet Functions | |||
Searching for case specific data | Excel Discussion (Misc queries) | |||
searching for specific text | Excel Discussion (Misc queries) | |||
Searching for specific text | Excel Programming |