I'm sorry, there was a mistake in my code.
Please correct.


wrong: For i = 1 To m
right: For i = 1 To dic.Count