È soltanto un Pokémon con le armi o è un qualcosa di più? Vieni a parlarne su Award & Oscar!
 
Pagina precedente | 1 | Pagina successiva
Vota | Stampa | Notifica email    
Autore

macro che non va

Ultimo Aggiornamento: 26/11/2016 00:47
Post: 88
Registrato il: 10/06/2008
Città: BRESCIA
Età: 47
Utente Junior
Excel 2019
OFFLINE
24/11/2016 22:08

Ciao a tutti!

Mi potete dare una mano con questa macro perché mi dà Debug?

-----------------
Sub aaaaaaa()
vv = Cells(1, 1)
uu = Cells(2, 1)
Range("C4:F13").Copy
Range(Cells(vv, 8), Cells(uu, 11)).Paste
End Sub
----------------

Allego anche un file di esempio

Grazie
_________________
Excel 2019
Post: 1.910
Registrato il: 21/03/2008
Città: LOCATE VARESINO
Età: 76
Utente Veteran
2007 / 13
OFFLINE
24/11/2016 23:16

ciao



Sub aaaaaaa()
vv = Cells(1, 1)
uu = Cells(2, 1)
Range("C4:F13").Copy
Range(Cells(vv, 8), Cells(uu, 11)).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub




Ciao da locate
excel 2007 / 13
Post: 88
Registrato il: 10/06/2008
Città: BRESCIA
Età: 47
Utente Junior
Excel 2019
OFFLINE
25/11/2016 02:10

Re:
locatevaresino, 24/11/2016 23.16:

ciao



Sub aaaaaaa()
vv = Cells(1, 1)
uu = Cells(2, 1)
Range("C4:F13").Copy
Range(Cells(vv, 8), Cells(uu, 11)).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub









Adesso funziona!
Ma perché non funziona se non si fa Select?
_________________
Excel 2019
Post: 3.473
Registrato il: 13/03/2012
Città: LIVORNO
Età: 78
Utente Master
2010
OFFLINE
25/11/2016 08:09

Sub aaaaaaa()
vv = Cells(1, 1)
uu = Cells(2, 1)
Range("C4:F13").Copy
Range(Cells(vv, 8), Cells(uu, 11)).PasteSpecial
End Sub

oppure
Sub aaaaaaa()
vv = Cells(1, 1)
uu = Cells(2, 1)
Range("C4:F13").Copy Range(Cells(vv, 8), Cells(uu, 11))
End Sub

[Modificato da patel45 26/11/2016 08:22]

----------
Win 10 - Excel 2010
allega un file di esempio, guadagnerai tempo tu e lo farai risparmiare a chi ti aiuta
Post: 89
Registrato il: 10/06/2008
Città: BRESCIA
Età: 47
Utente Junior
Excel 2019
OFFLINE
26/11/2016 00:47

Grazie!

Così imparo un po' di cose nuove...

_________________
Excel 2019
Vota:
Amministra Discussione: | Chiudi | Sposta | Cancella | Modifica | Notifica email Pagina precedente | 1 | Pagina successiva
Nuova Discussione
 | 
Rispondi
Cerca nel forum
Tag discussione
Discussioni Simili   [vedi tutte]
pw su file che non riesco a togliere (8 messaggi, agg.: 12/11/2017 20:34)
Feed | Forum | Bacheca | Album | Utenti | Cerca | Login | Registrati | Amministra
Tutti gli orari sono GMT+01:00. Adesso sono le 15:19. Versione: Stampabile | Mobile | Regolamento | Privacy
FreeForumZone [v.6.1] - Copyright © 2000-2024 FFZ srl - www.freeforumzone.com