Welcome to the VBAX forum pavell86. I've taken the trouble to include your code within your post. Please don't expect others to chase all over the internet just because you failed to include the relevant code here.