Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
publicado

Saludos amigos espero estén bien 

En la actualidad  los datos provenientes de los TextBox 5, 6 y 7 se guardan en las Columnas H, I y O de las Hojas 58 (MATRIZ1) y Hojas59 (MATRIZ2) sin embargo cuando el texto es abundante no se visualiza completamente en las celdas correspondientes de allí que necesito que cada fila se ajuste al tamaño de la celda que contenga mayor cantidad de texto para lo cual he probado con la siguiente macro:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.EntireRow.AutoFit
End Sub

Sin embargo, dicha macro coloca todas las filas del tamaño del texto que contengan y lo que en realidad necesito es que dicha macro solo se aplique desde la Fila 5 en adelante.

Mucho les sabre agradecer la ayuda que me puedan dar

RCI PRUEBA..xlsm

Editado el por jues

Solucionado por JSDJSD

Ir a la solución

Featured Replies

publicado
  • Solución
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    ' Asegurarnos de que solo ajustamos las filas a partir de la fila 5
    If Not Intersect(Target, Me.Rows("5:" & Me.Rows.Count)) Is Nothing Then
        Me.Rows("5:" & Me.Rows.Count).AutoFit
    End If
End Sub

 

Crear una cuenta o conéctate para comentar

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.