I have searched Microsoft's Help, this forum, and other forums, but I cannot turn up a comprehensive explanation of the differences between the Values vs Formulas options for the "Look In" parameter of Excel's Find dialogue box and its VBA cousin the Range.Find expression. Both offer the option to "Look In" either Formulas or Values; however, I'm not sure I understand the implications of these options. I would be grateful if someone can point me to a good explanation of the differences and limitations. In addition, I have some specific questions:
Does "Look In" Formulas really mean "look at the formula construct itself (i.e. what appears in the Formula Bar) or, if a cell is populated with a constant (i.e. not a formula result), then look at that value"? In other words, does the "Look In" Formulas limit the examination to ONLY those cells in the range that have formulas, or does it still examine every populated cell in the range?
And, when using "Look In" Values, what limitations should I be aware of? Shockingly, I have learned that it is sensitive to the displayed value, as a too narrow column that results in the value being displayed as "###" won't return a hit with this Find method, but the expanded column that shows the value in its entirety will return a hit. Are there other limitations that might trip-up the average Excel user?
Lastly, any specific advice when applying VBA Find to a spreadsheet that is opened from a csv text file, using OpenText method that defines one field as a date with the DMY format? I found that LookIn:=xlValues won't return a hit on a date value; however, LookIn:=xlFormulas will. Does the import/definition process essentially render those date values as the result of a formula (e.g. =DATEVALUE("01-04-13") or =TEXT("01-04-13","DD-MM-YY"), both crazy I'll admit), even tho they appear as constants in the resultant cells?
Thanks in advance,
SDL
Does "Look In" Formulas really mean "look at the formula construct itself (i.e. what appears in the Formula Bar) or, if a cell is populated with a constant (i.e. not a formula result), then look at that value"? In other words, does the "Look In" Formulas limit the examination to ONLY those cells in the range that have formulas, or does it still examine every populated cell in the range?
And, when using "Look In" Values, what limitations should I be aware of? Shockingly, I have learned that it is sensitive to the displayed value, as a too narrow column that results in the value being displayed as "###" won't return a hit with this Find method, but the expanded column that shows the value in its entirety will return a hit. Are there other limitations that might trip-up the average Excel user?
Lastly, any specific advice when applying VBA Find to a spreadsheet that is opened from a csv text file, using OpenText method that defines one field as a date with the DMY format? I found that LookIn:=xlValues won't return a hit on a date value; however, LookIn:=xlFormulas will. Does the import/definition process essentially render those date values as the result of a formula (e.g. =DATEVALUE("01-04-13") or =TEXT("01-04-13","DD-MM-YY"), both crazy I'll admit), even tho they appear as constants in the resultant cells?
Thanks in advance,
SDL