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.

Copiar datos de un libro a otro con condicion

publicado

Hola buenas noches, espero su ayuda por favor.

Estoy intentando copiar datos de un libro:  prueba_guardarotrolibro(TEMP) para  pasarlo a otro: baseprueba(TEMP), desde la columna A hasta la columna AO, que cumplan la condicion  en la columna Estado = Cerrado

al pasar al otro libro debe copiarse debajo del ultimo registro.

ESPERO CONTAR CON USTEDES, DE ANTEMANO MUCHAS GRACIAS, ES MUY IMPORTANTE.

baseprueba.xlsx prueba_guardarotrolibro.xlsm

Featured Replies

publicado
  • Autor

Logrado..

les dejo  el codigo por si lo necesitan

 

Sub CONSOLIDAR()
Application.ScreenUpdating = False
Dim ufa, ufb As Integer

Dim LibroDestino As Workbook
Dim HojaRegistro As Worksheet


ufa = HREGISTRO.Range("A" & Rows.Count).End(xlUp).Row
Set LibroDestino = Workbooks.Open(ActiveWorkbook.Path & "\BASES\BASECOTIZACIONES.xlsx")
Set HojaRegistro = LibroDestino.Worksheets("TEMP")
ThisWorkbook.Activate
ufb = HojaRegistro.Range("A" & Rows.Count).End(xlUp).Row

        With HREGISTRO.Range("A2:AO" & ufa) '.CurrentRegion
                .AutoFilter 20, Criteria1:="=" & "CERRADO", Operator:=xlOr, Criteria2:="=" & " "
                .SpecialCells(12).COPY HojaRegistro.Range("A" & ufb + 1)
                .AutoFilter

        End With


LibroDestino.Save
LibroDestino.Close

Application.ScreenUpdating = True
 

 

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.