Please modify your code as below
With xlWksht.Range(xlWksht.Cells(ii + 1, 1), xlWksht.Cells(ii + 1, 5))
This will work
divakar.it
Junior Poster in Training
50 posts since Oct 2010
Reputation Points: 14
Solved Threads: 1
@Divakar, please try not to add more comments to posts that is as old as this one. Raising the dead is seen as a no go here on Daniweb, thanks.:)
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350