A voir également:
- OpenOffice Calc Supprimer plusieures cellules contiguës
- Openoffice - Télécharger - Suite bureautique
- Supprimer rond bleu whatsapp - Guide
- Supprimer une page word - Guide
- Supprimer pub youtube - Accueil - Streaming
- Formule excel pour additionner plusieurs cellules - Guide
2 réponses
Bonsoir,
J'ai trouvé la réponse à mon problème.
Voici le code pour ceux que ça intéresse.
J'ai trouvé la réponse à mon problème.
Voici le code pour ceux que ça intéresse.
Sub SuppCell
Print "Debut"
Dim Doc As Object
Dim Sheet As Object
Dim CellRangeAddress As New com.sun.star.table.CellRangeAddress
Dim indlig,indcol, startcol as integer
'Doc = StarDesktop.CurrentComponent
Doc = thisComponent
Sheet = Doc.Sheets(0)
startcol = 0
indlig = 0
indcol = 0
For indlig = 0 to 6
indcol = indcol + 1
CellRangeAddress.Sheet = 0
CellRangeAddress.StartColumn = startcol
CellRangeAddress.StartRow = indlig
CellRangeAddress.EndColumn = indcol
CellRangeAddress.EndRow = indlig
' print startcol & " " & indlig & " " & indcol & " " & indlig
Sheet.removeRange(CellRangeAddress, com.sun.star.sheet.CellDeleteMode.LEFT)
Next indlig
Print "Fin"
End Sub