Hi, I’m trying to add a border to a particular range in excel while writing them. I’m quite new to Uipath and C#. I managed to find the below resource, but I’m not quite sure how I can apply this logic in UiPath.
Sub setBorder()
Dim rang As Range
Set rang = Worksheets(“Sheet1”).Range(“A1:B4”)
With rang.Borders
.LineStyle = xlContinuous
.Weight = xlThin
End With
End Sub
Hello @Pankaj.Patil,
thank you, But what if we aren’t allowed to run the macro on the target machine? I want something that can be written like set colour activity for cell or range.
hi thank you for the activity! system will prompt that excel found is found, do i want to overwrite it. as there are a few worksheets in an excel file that i need to draw borders. anyway to remove the prompting?
dear @Balupad14 thank you for your help!
in the end, i created table instead, and there will be default borders and colors. so it resolved my needs. thanks again!