<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to run &amp;quot;find&amp;quot; command in Excel through SAS DDE in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64964#M875</link>
    <description>I "think" you need FORMULA.FIND.  I was not able to test.&lt;BR /&gt;
&lt;BR /&gt;
put '[formula.find(200847,2,1,1)]';&lt;BR /&gt;
Syntax&lt;BR /&gt;
&lt;BR /&gt;
FORMULA.FIND(text, in_num, at_num, by_num, dir_num, match_case)&lt;BR /&gt;
FORMULA.FIND?(text, in_num, at_num, by_num, dir_num, match_case)&lt;BR /&gt;
Text    is the text you want to find. Text corresponds to the Find What box in the Find dialog box.&lt;BR /&gt;
In_num    is a number from 1 to 3 specifying where to search.&lt;BR /&gt;
&lt;BR /&gt;
In_num	Searches&lt;BR /&gt;
&lt;BR /&gt;
1	Formulas &lt;BR /&gt;
2	Values &lt;BR /&gt;
3	Notes &lt;BR /&gt;
&lt;BR /&gt;
At_num    is the number 1 or 2 and specifies whether to find cells containing only text or also cells containing text within a longer string of characters.&lt;BR /&gt;
&lt;BR /&gt;
At_num	Searches for text as&lt;BR /&gt;
&lt;BR /&gt;
1	A whole string (the only value in the cell)&lt;BR /&gt;
2	Either a whole string or part of a longer string&lt;BR /&gt;
&lt;BR /&gt;
By_num    is the number 1 or 2 and specifies whether to search by rows or by columns.&lt;BR /&gt;
&lt;BR /&gt;
By_num	Searches by&lt;BR /&gt;
&lt;BR /&gt;
1	Rows&lt;BR /&gt;
2	Columns&lt;BR /&gt;
&lt;BR /&gt;
Dir_num    is the number 1 or 2 and specifies whether to search for the next or previous occurrence of text.&lt;BR /&gt;
&lt;BR /&gt;
Dir_num	Searches for&lt;BR /&gt;
&lt;BR /&gt;
1 or omitted	The next occurrence of text&lt;BR /&gt;
2	The previous occurrence of text&lt;BR /&gt;
&lt;BR /&gt;
Match_case    is a logical value corresponding to the Match Case check box in the Find dialog box. If match_case is TRUE, Microsoft Excel matches characters exactly, including uppercase and lowercase; if FALSE or omitted, matching is not case-sensitive.&lt;BR /&gt;
&lt;PRE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Dec 2008 20:44:23 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2008-12-10T20:44:23Z</dc:date>
    <item>
      <title>How to run "find" command in Excel through SAS DDE</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64962#M873</link>
      <description>I have a sas program to write data from sas into an existing EXCEL spreadsheet. I want to run "find" command in EXCEl through SAS DDE.&lt;BR /&gt;
&lt;BR /&gt;
Here is the part of my program :&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Put '[ERROR(false)]';&lt;BR /&gt;
Put '[OPEN("'"&amp;amp;fname."'")]';&lt;BR /&gt;
Put '[workbook.activate("'"&amp;amp;tname."'")]';&lt;BR /&gt;
put '[SELECT("R90C28:R90C30")]';&lt;BR /&gt;
put 'selection.find(200847)';&lt;BR /&gt;
&lt;BR /&gt;
I keep getting error message like " DDE session not ready". I can't figure out why, as if I remove the last line of my program, it runs ok. Please help.&lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
      <pubDate>Mon, 08 Dec 2008 22:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64962#M873</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-08T22:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to run "find" command in Excel through SAS DDE</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64963#M874</link>
      <description>an alternative way is to record a macro.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.microsoft.com/kb/128185" target="_blank"&gt;http://support.microsoft.com/kb/128185&lt;/A&gt;</description>
      <pubDate>Wed, 10 Dec 2008 15:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64963#M874</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-10T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to run "find" command in Excel through SAS DDE</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64964#M875</link>
      <description>I "think" you need FORMULA.FIND.  I was not able to test.&lt;BR /&gt;
&lt;BR /&gt;
put '[formula.find(200847,2,1,1)]';&lt;BR /&gt;
Syntax&lt;BR /&gt;
&lt;BR /&gt;
FORMULA.FIND(text, in_num, at_num, by_num, dir_num, match_case)&lt;BR /&gt;
FORMULA.FIND?(text, in_num, at_num, by_num, dir_num, match_case)&lt;BR /&gt;
Text    is the text you want to find. Text corresponds to the Find What box in the Find dialog box.&lt;BR /&gt;
In_num    is a number from 1 to 3 specifying where to search.&lt;BR /&gt;
&lt;BR /&gt;
In_num	Searches&lt;BR /&gt;
&lt;BR /&gt;
1	Formulas &lt;BR /&gt;
2	Values &lt;BR /&gt;
3	Notes &lt;BR /&gt;
&lt;BR /&gt;
At_num    is the number 1 or 2 and specifies whether to find cells containing only text or also cells containing text within a longer string of characters.&lt;BR /&gt;
&lt;BR /&gt;
At_num	Searches for text as&lt;BR /&gt;
&lt;BR /&gt;
1	A whole string (the only value in the cell)&lt;BR /&gt;
2	Either a whole string or part of a longer string&lt;BR /&gt;
&lt;BR /&gt;
By_num    is the number 1 or 2 and specifies whether to search by rows or by columns.&lt;BR /&gt;
&lt;BR /&gt;
By_num	Searches by&lt;BR /&gt;
&lt;BR /&gt;
1	Rows&lt;BR /&gt;
2	Columns&lt;BR /&gt;
&lt;BR /&gt;
Dir_num    is the number 1 or 2 and specifies whether to search for the next or previous occurrence of text.&lt;BR /&gt;
&lt;BR /&gt;
Dir_num	Searches for&lt;BR /&gt;
&lt;BR /&gt;
1 or omitted	The next occurrence of text&lt;BR /&gt;
2	The previous occurrence of text&lt;BR /&gt;
&lt;BR /&gt;
Match_case    is a logical value corresponding to the Match Case check box in the Find dialog box. If match_case is TRUE, Microsoft Excel matches characters exactly, including uppercase and lowercase; if FALSE or omitted, matching is not case-sensitive.&lt;BR /&gt;
&lt;PRE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Dec 2008 20:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64964#M875</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2008-12-10T20:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to run "find" command in Excel through SAS DDE</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64965#M876</link>
      <description>Thank you. &lt;BR /&gt;
&lt;BR /&gt;
formula.find( ) works well in my situation.</description>
      <pubDate>Tue, 24 Feb 2009 19:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/How-to-run-quot-find-quot-command-in-Excel-through-SAS-DDE/m-p/64965#M876</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-24T19:35:22Z</dc:date>
    </item>
  </channel>
</rss>

