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.

Agregar Loop a macro hasta que se cumpla condicion

publicado

Necesitaria su ayuda para agregarle un loop a esta macro que haga que mientras H36 sea "Bajo" se copie el valor de K36 en C36, si el valor de H36 es "alto" se copie L36 en C36 y si el valor de H36 es "Bien" termine la macro.

El resto funcion abien pero yo mismo no pude agregarle el loop, les dejo masomenos lo que tengo

Sub Porcentajes()

Application.Calculation = xlCalculationAutomatic

If Range("h36").Value = "Bajo" Then

Range("k36").Copy

Range("c36").PasteSpecial xlPasteValues

End If

If Range("h36").Value = "Alto" Then

Range("l36").Copy

Range("c36").PasteSpecial xlPasteValues

End If

If Range("h36").Value = "Bien" Then Exit Sub

End Sub

Featured Replies

publicado

podría ser algo como (ojo que no lo verifiqué y puede entrar en un loop infinito)

Sub Porcentajes()

Application.Calculation = xlCalculationAutomatic

Application.EvableEvents = False

Do While Range("H36").value <> "Bien"

If Range("h36").Value = "Bajo" Then

Range("k36").Copy

Range("c36").PasteSpecial xlPasteValues

End If

If Range("h36").Value = "Alto" Then

Range("l36").Copy

Range("c36").PasteSpecial xlPasteValues

End If

Loop

Application.EvableEvents = True

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.