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.

Código vba que muestre filas, dependiendo del contenido calculado en una celda

publicado

Hola. Estoy intentando generar el código adecuado que me muestre algunas filas ocultas, dependiendo del contenido calculado en una celda y he generado el procedimiento que anexo a este, pero no logro que la acción se realice. ¿Alguien me puede indicar que estoy haciendo mal? Gracias anticipadas.

Private Sub Worksheet_Calculate()
Dim Wkb As Workbook, WksInfGen As Worksheet
Dim Sel As Integer

Set Wkb = ThisWorkbook
Set WksInfGen = Wkb.Worksheets("Inf Gen")
Sel = Range("Y17").Value

Application.ScreenUpdating = False
Application.EnableEvents = False
Select Case Sel
Case 1
Rows("18:24").EntireRow.Hidden = False
Case 2
Rows("18:20").EntireRow.Hidden = False
Rows("25:28").EntireRow.Hidden = False
Case 3
Rows("18:20").EntireRow.Hidden = False
Rows("29:32").EntireRow.Hidden = False
Case 4
Rows("33:36").EntireRow.Hidden = False
Case 5
Rows("37:40").EntireRow.Hidden = False
Case 6
Rows("41:44").EntireRow.Hidden = False
End Select

End Sub
[/CODE]

Featured Replies

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

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.