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 y pegar en valores una hoja

publicado

buena tarde, solicito de su ayuda ya que genere este código, pero al agregarle la parte cells select se atora y si se lo quito corre bien el problema es que las hojas se quedan formuladas por eso necesito que se peguen en valores espero me puedan ayudar. saludos


[/hr]

Sub crear()

Dim n As Integer

Dim i As Integer

Dim a As Variant

n = 4

Sheets("PARAMETROS").Select

For i = 1 To 14

a = Cells(n + i, 1)

Range("I2").Select

ActiveCell.FormulaR1C1 = a

Sheets("RESUMEN").Copy

Cells.Select

Selection.Copy

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False

Application.CutCopyMode = False

ChDir "C:\Users\oper15\Documents\uriel\logistica\REPORTE PRESUPUESTOS DE VENTAS\JULIO"

ActiveWorkbook.SaveAs Filename:="C:\Users\oper15\Documents\uriel\logistica\REPORTE PRESUPUESTOS DE VENTAS\JULIO\PRESUPUESTOS POR TDA" & a & "0707JUL.xls", FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False

ActiveWindow.Close

Next i

End Sub

- - - - - Mensaje combinado - - - - -

listo ya lo solucione me quedo asi....Sub crear()

Dim n As Integer

Dim i As Integer

Dim a As Variant

n = 4

Sheets("PARAMETROS").Select

For i = 1 To 14

Application.DisplayAlerts = False

a = Cells(n + i, 1)

Range("I2").Select

ActiveCell.FormulaR1C1 = a

Sheets("RESUMEN").Copy

Selection.Copy

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False

Application.CutCopyMode = False

ChDir "C:\Users\oper15\Documents\uriel\logistica\REPORTE PRESUPUESTOS DE VENTAS\JULIO"

ActiveWorkbook.SaveAs Filename:="C:\Users\oper15\Documents\uriel\logistica\REPORTE PRESUPUESTOS DE VENTAS\JULIO\PRESUPUESTOS POR TDA" & a & "0707JUL.xls", FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False

ActiveWindow.Close

Next i

End Sub

Featured Replies

No hay posts para mostrar

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.