Hi TMS,
Thank you.

The code is working fine for outer border but not for inner border.

Suppose I want a outer border from range 'B2' then it's working fine.
if I want a inner border from range 'B5' then it's not working. The inner border starts from range 'B2' instead of range 'B5'.

Thanking you.