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.

Crear macro para copiar fechas

publicado

Hola buenas tardes,

Tengo en Excel una macro que realiza copias de una hoja  “planilla “(modelo)  tantas semanas tiene el mes y las renombra con los datos que tengo en la hoja ListadoCopia,

En la misma hoja tengo tres columnas de fecha ya calculadas correspondientes a los días de cada semana solo necesito los (Lunes, Miércoles, Viernes), me gustaría que copiara estas fechas en las hojas ya renombradas según corresponda así la hoja ENE_S1_2021 tendría el lunes 4/01/2021 , miércoles 6/01/2021, etc…

Perdón si es muy simple la pregunta estoy empezando y lo veo todo un mundo el poder manejarme en Excel.

Muchas gracias a todos

quirofanos.xlsm

Featured Replies

publicado

Prueba con la macro:

Sub Copia()
Dim C As Range
'--
Application.ScreenUpdating = False
For Each C In Range("A2", Range("A" & Rows.Count).End(xlUp))
   Sheets("Planilla").Copy Sheets(Sheets.Count)
   With ActiveSheet
      .Range("A1") = C
      .Range("A3") = C.Offset(0, 5)
      .Range("A6") = C.Offset(0, 6)
      .Range("A9") = C.Offset(0, 7)
      .Name = Trim(C.Offset(0, 1))
   End With
Next C
Application.ScreenUpdating = True
End Sub

 

publicado
  • Autor

Muchísimas Gracias Antoni,

justo lo que necesitaba, funciona todo perfecto.

Un Saludo

 

 

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.