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:
deiutza20 la Simpatie.ro
Femeie
21 ani
Bacau
cauta Barbat
21 - 44 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [EXCEL] Do Not Resize Comment when Resizing Cells Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 739
I have various comments in an Excel table and upon filtering or sorting the table differently, the comments in a column change sizes.

In order to prevent that, I made a simple code to lock the aspect ratio of all the comments in selection and prevent them from resizing with cells:


Sub Comment_Size()

For Each cell In Selection
    If Not cell.Comment Is Nothing Then
        cell.Comment.Shape.LockAspectRatio = msoTrue    ' enable Lock aspect ratio
        cell.Comment.Shape.Placement = 2                       ' enable Move but do not size with cells
    End If
Next cell

End Sub


Source:


pus acum 1 an
   
Pagini: 1  

Mergi la