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.

macro para copiar celda desde formula a maxtxt

publicado

Quisiera me ayudaran en esto.

Tengo un libro con 2 paginas la primera se llama maxtxt y la segunda se llama formula.

Necesito macro para copiar desde pagina formula la celda A2 y pegarla en pagina maxtxt Celda C7.


Private Sub maxtxt()
Set Lcl = Range("B3")
Set rg = Range("C7")
rg.Copy rg.Offset(rg.Rows.Count, 0).Resize(rg.Rows.Count * [B5] - 1)


fecha = Format(Now - 1, "mmdd")
Application.ScreenUpdating = False
Range("C7").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Workbooks.Add
Range("A1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveWorkbook.SaveAS Filename:="C:\" & "Max" & fecha & "." & Lcl, FileFormat:=xlText, CreateBackup:=False
ActiveWorkbook.Close
Application.ScreenUpdating = True


End Sub

[/PHP]

Featured Replies

publicado
Necesito macro para copiar desde pagina formula la celda A2 y pegarla en pagina maxtxt Celda C7.

Sheets("formula").Range("A2").Copy Sheets("maxtxt").Range("C7")

publicado
  • Autor

Primero que todo gracias Macro antonio por la ayuda.

No me funciona, me arroja error.

En la macro que subi como deberia implementarla?

rg.Copy rg.Offset(rg.Rows.Count, 0).Resize(rg.Rows.Count * [B5] - 1)[/PHP]

elimine rg.copy y coloque la macro que me diste .

adjunto archivo

Solicitud.zip

publicado

Tu archivo da error "Factor de compresión desconocido".

  • 2 weeks later...
publicado
  • Autor

macro antonio por favor ayudame con esto...

Saludos...

  • 2 weeks later...
publicado
  • Autor

solucione el problema...

tema cerrado gracias...

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.