Working on a VB.Net program using visual studio 2008. The program creates a report in an excel worksheet. I need to have some cells with custom borders on certain edges (above, below, left or right). At the moment, I can create a full border around a cell using this sample command:
myWorksheet.Cells(1,1).BorderAround (Excel.XlLineStyle.xlContinuous)
How do I modify that command to create borders on certain edges?
Also, what is the right command to create a new worksheet for each click on a button named "createNewWS"? It should be a new worksheet in the same excel file.
Thanks.
Tags: