msgbox Cells.Find("*", , , , xlByColumns, xlPrevious).Column
MsgBox "dernière colonne de l'occupation : " & Cells.SpecialCells(xlCellTypeLastCell).Column MsgBox "dernière ligne de l'occupation : " & Cells.SpecialCells(xlCellTypeLastCell).Row
MsgBox "dernière colonne de l'occupation :" & vbCrLf & _ "avec usedrange : " & ActiveSheet.UsedRange.Columns.Count + ActiveSheet.UsedRange.Column - 1 & vbCrLf & _ "avec specialcells(xlCellTypeLastCell) : " & Cells.SpecialCells(xlCellTypeLastCell).Column & vbCrLf & vbCrLf & _ "dernière colonne de l'occupation :" & vbCrLf & _ "avec usedrange : " & ActiveSheet.UsedRange.Rows.Count + ActiveSheet.UsedRange.Row - 1 & vbCrLf & _ "avec specialcells(xlCellTypeLastCell) : " & Cells.SpecialCells(xlCellTypeLastCell).Row
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question