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.

Instrucción CopyToRange sólo valores

publicado

Hola de nuevo,

quería saber si en la instrucción CopyToRange habría la posibilidad que copiara sólo valores y mantuviera el formato de la hoja destino siempre igual.

Gracias

Featured Replies

publicado
  • Autor

Hola Gerson,

copio aquí el código:

Sub Botón208_Clic()
Sheets("hoja1").Select
Range("k1") = Sheets("hoja3").Range("C1")
uf = Sheets("hoja2").Range("A" & Cells.Rows.Count).End(xlUp).Row
Sheets("Hoja2").Range("A1:j" & uf).AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("m1:m2"), COPYTORANGE:=Range("b6:j6")
End Sub[/CODE]

Aquí no puedo canviar directamente el copytorange por pastespecial. He porbado diferentes convinaciones pero no funciona.

Saludos

publicado

Hola Larpi

Me referia a lo siguiente:

    Sub Botón208_Clic()
Application.ScreenUpdating = False
Sheets("hoja1").Select
Range("k1") = Sheets("hoja3").Range("C1")
uf = Sheets("hoja2").Range("A" & Cells.Rows.Count).End(xlUp).Row
With Sheets("Hoja2").Range("A1:j" & uf)
[COLOR=#a9a9a9]Rem >>> .AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("m1:m2"), COPYTORANGE:=Range("b6:j6")[/COLOR]
.AutoFilter Field:=13, Criteria1:=Range("M2")
.Copy
Range("B6").Activate: Selection.[COLOR=#ff0000][B]PasteSpecial [/B][/COLOR]xlValues
End With
Range("A1").AutoFilter
ActiveCell.Select
Application.ScreenUpdating = True
End Sub[/CODE]

Debo comentarte, que cuides tu ortografia, y siempre trata de subir un archivo, todo esto es para tu (y de todos) beneficio

Espeto te funcion y nos comentas porfavor

Saludos desde Honduras

publicado
  • Autor

Perdona,

es que voy un poco mal de tiempo y no me lo he podido mirar detenidamente.

Saludos

  • 2 weeks later...
publicado
  • Autor

Holo siento porque se que parece que haya abandonado el tema. Lo probe hace unos dias pero con las prisas no logre sacarlo.

Espero tener mas tiempo para mirarlo detenidamente.

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.