Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Testing Strings Using Left

The "wrong" way: Sub FindTotals()         Dim rCell As Range         For Each rCell In Sheet1.Columns(1).Cells         If Left$(rCell, 5) = "Total" Then             'Do something         End If     Next rCell     End Sub The "right" way: Sub FindTotals2()         Dim rCell As [...] Read More...

Read the complete post at http://www.dailydoseofexcel.com/archives/2008/04/28/testing-strings-using-left/


Posted Apr 28 2008, 12:44 PM by Daily Dose of Excel
Filed under:
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.