Run-Time Error 1004 : The Text you have entered is not a Valid reference or defined name<p align=left><font face="Times New Roman" size=2>Alrighty So this seams like a really simple line of Code... </font></p> <p align=left><font face="Times New Roman"></font> </p> <p align=left><font face="Times New Roman">I am using Excel 2007 </font></p> <p align=left><font face="Times New Roman"></font> </p> <p align=left><font face="Times New Roman">I have narrowed my error down to this silly line of code.  The Error i am getting is </font>1004: The text you have entered is not a valid reference or defined name...</p> <p align=left> </p> <p align=left>Sheets(&quot;Items&quot;).Range(&quot;ItemNumberHeader&quot;).CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= (Range(&quot;AI1&quot;).CurrentRegion), Unique:=False</p> <p align=left> </p> <p align=left>(This is all on a single line No need for the Continuation _) </p> <p align=left> </p> <p align=left><strong>Here is my Complete Subroutine for Reference.</strong></p> <p align=left> </p> <p>Sub FindAction()<br>' This Action Finds the Product Entered into the Query Page / Items Page for Ordering</p> <p>    Dim strDesckeywords As String<br>    Dim lngWords As Long<br>    Dim arrIn() As String<br>    Dim i As Integer<br>    Dim rng As Range<br>    <br>    Application.ScreenUpdating = False<br>    <br>    ' Copies User Entered Item Number for Searching (Query)<br>    Sheets(&quot;Query&quot;).Select<br>    ActiveSheet.Range(&quot;Item_Num&quot;).Select<br>    Selection.Copy<br>    Sheets(&quot;Items&quot;).Select<br>    Application.Goto Reference:=&quot;ItemFind&quot;<br>    ActiveSheet.Paste<br>    Sheets(&quot;Items&quot;).Range(&quot;DescriptionCriteriaArea&quot;).ClearContents<br>    strDesckeywords = Sheets(&quot;Query&quot;).Range(&quot;Description_Keywords&quot;).Value<br>    lngWords = WordsToArray_TSB(strDesckeywords, arrIn())<br>    For i = 1 To lngWords Step 1<br>        Debug.Print &quot;*&quot; &amp; arrIn(i) &amp; &quot;*&quot;<br>        Sheets(&quot;Items&quot;).Range(&quot;DescriptionFind&quot;).Offset(i - 1, 0) = &quot;*&quot; &amp; arrIn(i) &amp; &quot;*&quot;<br>    Next i</p> <p>   </p> <p align=left>    'Preforms Search Functions<br>    'Basic (works But Limited Abilities)<br>    'Sheets(&quot;Items&quot;).Range(&quot;ItemNumberHeader&quot;).CurrentRegion.AutoFilter Field:=2, Criteria1:=&quot;=*Black*&quot;</p> <p><br>    'Advanced Search Functionality (NOT WORKING)<br>    Sheets(&quot;Items&quot;).Range(&quot;ItemNumberHeader&quot;).CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=(Range(&quot;AI1&quot;).CurrentRegion), Unique:=False<br></p> <p> <br>    'Selects Top Cell for Ease Of End user Usage<br>    Application.Goto Reference:=&quot;ItemNumberHeader&quot;</p> <p>End Sub<br></p>© 2009 Microsoft Corporation. All rights reserved.Wed, 10 Dec 2008 23:25:30 Z68fffa31-d970-46da-a5e2-2a2848c6f098http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/68fffa31-d970-46da-a5e2-2a2848c6f098#68fffa31-d970-46da-a5e2-2a2848c6f098http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/68fffa31-d970-46da-a5e2-2a2848c6f098#68fffa31-d970-46da-a5e2-2a2848c6f098Christopher Zingerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Christopher%20ZingerRun-Time Error 1004 : The Text you have entered is not a Valid reference or defined name<p align=left><font face="Times New Roman" size=2>Alrighty So this seams like a really simple line of Code... </font></p> <p align=left><font face="Times New Roman"></font> </p> <p align=left><font face="Times New Roman">I am using Excel 2007 </font></p> <p align=left><font face="Times New Roman"></font> </p> <p align=left><font face="Times New Roman">I have narrowed my error down to this silly line of code.  The Error i am getting is </font>1004: The text you have entered is not a valid reference or defined name...</p> <p align=left> </p> <p align=left>Sheets(&quot;Items&quot;).Range(&quot;ItemNumberHeader&quot;).CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= (Range(&quot;AI1&quot;).CurrentRegion), Unique:=False</p> <p align=left> </p> <p align=left>(This is all on a single line No need for the Continuation _) </p> <p align=left> </p> <p align=left><strong>Here is my Complete Subroutine for Reference.</strong></p> <p align=left> </p> <p>Sub FindAction()<br>' This Action Finds the Product Entered into the Query Page / Items Page for Ordering</p> <p>    Dim strDesckeywords As String<br>    Dim lngWords As Long<br>    Dim arrIn() As String<br>    Dim i As Integer<br>    Dim rng As Range<br>    <br>    Application.ScreenUpdating = False<br>    <br>    ' Copies User Entered Item Number for Searching (Query)<br>    Sheets(&quot;Query&quot;).Select<br>    ActiveSheet.Range(&quot;Item_Num&quot;).Select<br>    Selection.Copy<br>    Sheets(&quot;Items&quot;).Select<br>    Application.Goto Reference:=&quot;ItemFind&quot;<br>    ActiveSheet.Paste<br>    Sheets(&quot;Items&quot;).Range(&quot;DescriptionCriteriaArea&quot;).ClearContents<br>    strDesckeywords = Sheets(&quot;Query&quot;).Range(&quot;Description_Keywords&quot;).Value<br>    lngWords = WordsToArray_TSB(strDesckeywords, arrIn())<br>    For i = 1 To lngWords Step 1<br>        Debug.Print &quot;*&quot; &amp; arrIn(i) &amp; &quot;*&quot;<br>        Sheets(&quot;Items&quot;).Range(&quot;DescriptionFind&quot;).Offset(i - 1, 0) = &quot;*&quot; &amp; arrIn(i) &amp; &quot;*&quot;<br>    Next i</p> <p>   </p> <p align=left>    'Preforms Search Functions<br>    'Basic (works But Limited Abilities)<br>    'Sheets(&quot;Items&quot;).Range(&quot;ItemNumberHeader&quot;).CurrentRegion.AutoFilter Field:=2, Criteria1:=&quot;=*Black*&quot;</p> <p><br>    'Advanced Search Functionality (NOT WORKING)<br>    Sheets(&quot;Items&quot;).Range(&quot;ItemNumberHeader&quot;).CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=(Range(&quot;AI1&quot;).CurrentRegion), Unique:=False<br></p> <p> <br>    'Selects Top Cell for Ease Of End user Usage<br>    Application.Goto Reference:=&quot;ItemNumberHeader&quot;</p> <p>End Sub<br></p>Tue, 28 Aug 2007 15:49:17 Z2007-08-28T16:48:15Zhttp://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/68fffa31-d970-46da-a5e2-2a2848c6f098#24ac01fd-4035-40ee-a21b-0fee77bd91b3http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/68fffa31-d970-46da-a5e2-2a2848c6f098#24ac01fd-4035-40ee-a21b-0fee77bd91b3Christopher Zingerhttp://social.msdn.microsoft.com/Profile/en-US/?user=Christopher%20ZingerRun-Time Error 1004 : The Text you have entered is not a Valid reference or defined name<p>Ah Haa.. </p> <p align=left> </p> <p align=left>I found the Evil Doers.. </p> <p align=left> </p> <p align=left>Here is the working Code. </p> <p align=left> </p> <p align=left><strong>Sheets(&quot;Items&quot;).</strong>Range(&quot;ItemNumberHeader&quot;).CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, <strong>CriteriaRange:=(Sheets(&quot;Items&quot;).Range(&quot;AI1&quot;).CurrentRegion),</strong> Unique:=False<br></p> <p align=left> </p> <p align=left><font face=Arial size=2></font> </p>Tue, 28 Aug 2007 16:19:11 Z2007-08-28T16:48:15Z