after the loop exits add
Cells(iIndex,2).select
or change
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone
SkipBlanks _
:=False, Transpose:=False
to
Cells(iIndex,2).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone
SkipBlanks _
:=False, Transpose:=Fals
--
TommySzalapsk
-----------------------------------------------------------------------
TommySzalapski's Profile:
http://www.excelforum.com/member.php...fo&userid=2556
View this thread:
http://www.excelforum.com/showthread.php?threadid=38993