Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First hit for</p> <pre><code>excel range.find exact match site:microsoft.com </code></pre> <p>is:</p> <p><a href="http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.range.find.ASPX" rel="nofollow noreferrer">Range.Find</a></p> <p>There you find</p> <blockquote> <p>LookAt Type: System.Object</p> <pre><code>Optional Object. Can be one of the following XlLookAt constants: xlWhole or xlPart. </code></pre> </blockquote> <p>and following the <a href="http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.xllookat.ASPX" rel="nofollow noreferrer">LookAt link</a>, you see:</p> <pre><code>xlPart Match against any part of the search text. xlWhole Match against the whole of the search text. </code></pre> <p>BTW: Who is objTarget?</p> <p><strong>Update:</strong></p> <p>You have to 'port' (some hints <a href="https://stackoverflow.com/tags/vbscript/info">here</a>) the VBA code snippet you mention in your comment to VBScript:</p> <pre><code>Option Explicit ' Define Excel Consts unknown to VBScript Const xlPart = 2 Const xlWhole = 1 Dim oExcel : Set oExcel = CreateObject("Excel.Application") Dim oWBook : Set oWBook = oExcel.Workbooks.Open("M:\lib\kurs0705\testdata\ut.xls") Dim oRange : Set oRange = oWBook.Sheets("NewSheet").Range("A1:A11") ' translate named args to positional args ' expression.Find(What, After, LookIn, LookAt, SearchOrder, SearchDirection, MatchCase, MatchByte) Dim oFnd1 : Set oFnd1 = oRange.Find("Title1", , , xlPart) WScript.Echo TypeName(oFnd1), CStr(oFnd1) Dim oFnd2 : Set oFnd2 = oRange.Find("Title1", , , xlWhole) WScript.Echo TypeName(oFnd2), CStr(oFnd2) oWBook.Close oExcel.Quit </code></pre> <p>output:</p> <pre><code>cscript excelfind.vbs Range Title10 Range Title1 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload