Excel, cortar fila y ordenar informacion

hola buenas tardes, nececito recorrer un excel y cortar la ultima fila “Total General”, luego necesito ordenar la columna Vencidos de mayor a menor, y volver a pegar la fila total general al fnal de todo
estoy estancada en este paso
se lo agradeceria

Hi @mively

Can you try this

Regards,

Hi @mively

Is this solution not working now?

@mively

Another approach

Excel.Sheet("Sheet1").Range("A1:C"+(Excel.Sheet("Sheet1").DataTableValue.RowCount-1).ToString)

Input:

Output:

Regards,

2 Likes

lo hice pero sigue moviendo la ultima fila hacia arriba, no puedo inmovilizarla

Hi @mively

Can you send a screenshot of this part of the Excel Tab:

Is your “Total Row” manually created or was it created by selecting the Total Row option in “Table Style Options” ??

no es una tabla en si, es unformacion copiada y pegada, por eso no se inmoviliza la ultima fila

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.