How to create border for sme specific cells?

databicky
Contributor II

i tried some code to create border for excel sheet, for particular cell iam able to write but while i am trying with some set of cells means it is showing error.​