Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default searching for a specific part of a formula

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default searching for a specific part of a formula

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default searching for a specific part of a formula

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
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
Help With Searching For Strings In Part Numbers tb Excel Worksheet Functions 3 June 21st 11 04:22 PM
Searching for specific text - how to spacia Excel Worksheet Functions 0 May 13th 08 09:39 PM
Searching for case specific data Colin Foster Excel Discussion (Misc queries) 4 October 9th 07 06:10 PM
searching for specific text clerk Excel Discussion (Misc queries) 1 December 7th 05 12:16 AM
Searching for specific text simoncohen[_5_] Excel Programming 3 July 12th 04 05:47 PM


All times are GMT +1. The time now is 12:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"