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.

Como ocultar una columna bajo condicion

publicado

Buenas tardes,

estoy tratando de ver de que manera puedo ocultar una columna bajo la condición de una celda, no doy con la respuesta y quisiera saber si habrá alguna forma con Macro o VBA Ej;

E12=administracion turistica, se oculte la columna D.

Gracias anticipadas

 

Featured Replies

publicado

Hola,

Adjunta esta macro

 

Private Sub Worksheet_Change(ByVal Target As Range)
    Dim celda As Range

' The variable KeyCells contains the cells that will
    ' cause an alert when they are changed.
    Set celda = Range("e12:e12")

If Not Application.Intersect(celda, Range(Target.Address)) _
           Is Nothing Then
        If celda = "administracion turistica" Then
    Columns("D:D").Select
    Selection.EntireColumn.Hidden = True
    celda.Select
        Else
    Columns("D:D").Select
    Selection.EntireColumn.Hidden = False
    Columns("D:D").EntireColumn.AutoFit
    celda.Select
        End If
End If
End Sub

 

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.