how to find total width of multiple columns

don’t have any other details than the question itself

At least you know one thing we don’t: For what reason do you think to need the result?
You should tell us.

Hello @HM

Here is a simple Macro you can use to get the total width of multiple columns

Sub SetColWidth
	cols = Array(0, 1, 2, 4)
	sheet = ThisComponent.CurrentController.ActiveSheet
	sum = 0.0
	For i = LBound(cols()) To UBound(cols())
		sum = sum + sheet.Columns(i).Width
	Next
	Print "The Colums are " & sum & "mm width"
End Sub

Example Result:

Hope it helps.