Create Table by Using Border Lines for a Range

[ ]

The following example shows how to create a Range and specify the borderlines for the range cells.

After running the above code, we can have the generated excel file containing the formatted table; here is the screenshot of the file.