Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
barbyy la Simpatie.ro
Femeie
23 ani
Bucuresti
cauta Barbat
23 - 80 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [EXCEL] Automatically Resize Height of Rows in Selection [VBA] Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 739
The following code selects a table and resizes all rows in the way you would double click the line between 2 rows to resize the one above the line.


Sub Row_Resize()

Application.ScreenUpdating = False

Range("tbCUPRINS").Select

i = 6

For Each rw In Selection
    Rows(i & ":" & i).EntireRow.AutoFit
    i = i + 1
Next rw

Range("A4").Select

Application.ScreenUpdating = True

End Sub


pus acum 1 an
   
Pagini: 1  

Mergi la