Hello All,
I just have a template excel where the data extracted from SAP is being populated…But I just need the width of description field to be a little more wide(Not auto fit)…So is there a code which can be invoked in uipath to just increase the width of the cell?
Thanks and Regards,
Geetha
2 Likes
Hi
Welcome to uipath community
Did we try with vb script or macro ran with activity INVOKE VBA or EXECUTE MACRO inside the EXCEL APPLICATION SCOPE activity
Cheers @geethamrutha_pasumar
mukeshkala
(Mukesh Kala)
December 30, 2019, 6:34am
3
Hi @geethamrutha_pasumar ,
Welcome to the Community !
How About using UI Automation in Excel.
type into : cell and Enter
2.Click on format : you Have 2 Options now - Specify Column width / Auto Fit Width
Hotkeys can be also used to achieve the above
–
Mukesh
balupad14
(Balamurugan (BalaReva))
December 30, 2019, 10:03am
4
Hi @geethamrutha_pasumar ,
Welcome to UiPath Forum Community !
Here is an aciivity called Autofit column . Using this activity you can auto fit the column width or you can increase the column width.
Hi Friends,
I have included some new activity in the package (AutoFitColumns,AutoFitRows,Format Cells).
Now you can get the package here. I have uploaded the package in the UiPath Go. After It is uploaded , I will remove the package from here.
Namespace :
[image]
AutoFitColumns
Properties :
[image]
Usage of Column Range
Single Column = { “A:A” }
Continuous Columns={“B:D”}
Multiple Columns ={ “A:A”,“D:D”, “E:G” }
Range of Cells ={“A1:D8”}
To set column width
AutoFit=False
ColumnWi…
Regards
Balamurugan.S
1 Like
samir
(Samir Mohite)
December 30, 2019, 10:15am
5
Hi @geethamrutha_pasumar ,
Use following VBA code in Invoke VBA activity.
Sub Macro1()
Columns("E:E").ColumnWidth = 14.67
End Sub
—> change column & width as per your requirement
1 Like