$$Excel-Macros$$ Alert for repeating cell information

2009-12-11 Thread ChrisInHolland
Hi, I'm trying to write some code that will create an alert when a particular string value is found more than once in a specified range. For exmple, in Col A i have: cat cat cat mouse dog dog I need a script that will count how many times I have "cat" written and if that value is >1 I want it t

Re: $$Excel-Macros$$ Alert for repeating cell information

2009-12-14 Thread ChrisInHolland
- >     For I = 1 To RowCnt >     If Dict_CellVal.Item(Cells(I, "A").Value) > 1 Then >     Cells(I, "A").Interior.ColorIndex = 3 >     End If >     Next I > End Sub > > (did 10,000 rows in less than 1 second!) > > Paul > >

Re: $$Excel-Macros$$ Alert for repeating cell information

2009-12-14 Thread ChrisInHolland
x27;ve attached a workbook for you to look at. > Regards - Dave > > > > > Date: Fri, 11 Dec 2009 05:40:22 -0800 > > Subject: $$Excel-Macros$$ Alert for repeating cell information > > From: gapp...@hotmail.com > > To: excel-macros@googlegroups.com > > > H

Re: $$Excel-Macros$$ Alert for repeating cell information

2009-12-11 Thread Paul Schreiner
A").Value) > 1 Then     Cells(I, "A").Interior.ColorIndex = 3     End If     Next I End Sub (did 10,000 rows in less than 1 second!) Paul ________ From: ChrisInHolland To: MS EXCEL AND VBA MACROS Sent: Fri, December 11, 2009 8:40:22 AM Sub

RE: $$Excel-Macros$$ Alert for repeating cell information

2009-12-11 Thread Dave Bonallack
ook at. Regards - Dave > Date: Fri, 11 Dec 2009 05:40:22 -0800 > Subject: $$Excel-Macros$$ Alert for repeating cell information > From: gapp...@hotmail.com > To: excel-macros@googlegroups.com > > Hi, > > I'm trying to write some code that will create an alert w

Re: $$Excel-Macros$$ Alert for repeating cell information

2009-12-13 Thread Dilip Pandey
> example: > =COUNTIF($A$1:$A$2000,A1)>1 > I've attached a workbook for you to look at. > Regards - Dave > > > > Date: Fri, 11 Dec 2009 05:40:22 -0800 > > Subject: $$Excel-Macros$$ Alert for repeating cell information > > From: gapp...@hotmail.com > &