Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Darcy Jones   on Mar 23 In MS Office Category.

  
Question Answered By: Vilhelm Fischer   on Mar 23

: I get a compile error: 'Next without For' when using the
: function. Any recommendations?

I suspect it is an error in copying long lines from an
email message. Try changing the "Populate dictionary"
section to this.

' Populate dictionary
For Each vCell In rngCells
If Not Unique.exists(vCell.Value) Then
Unique.Add vCell.Value, vCell.Value
End If
Next vCell

Share: 

 

This Question has 14 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on unique counts Or get search suggestion and latest updates.


Tagged: