Pagina precedente | 1 | Pagina successiva
Vota | Stampa | Notifica email    
Autore

nome foglio in vba

Ultimo Aggiornamento: 04/03/2017 22:55
Post: 387
Registrato il: 28/05/2011
Città: MILANO
Età: 43
Utente Senior
excel 2000/2007
OFFLINE
04/03/2017 14:26

Ciao,
non riesco a far rinominare un foglio in VBA
Il foglio aveva il nome "Foglio2" ora rinominato in "ricerca".
in vba così funziona:

Set wOut = Foglio2 '<<< foglio2 oookkk
Set wOut = Worksheets("ricerca") '<<< non va

dove sbaglio?
john

---------------
excel 2007
Post: 3.747
Registrato il: 13/03/2012
Città: LIVORNO
Età: 78
Utente Master
2010
OFFLINE
04/03/2017 15:10

Re:
è molto più semplice
Sheets("Foglio2").name ="ricerca"

----------
Win 10 - Excel 2010
allega un file di esempio, guadagnerai tempo tu e lo farai risparmiare a chi ti aiuta
Post: 387
Registrato il: 28/05/2011
Città: MILANO
Età: 43
Utente Senior
excel 2000/2007
OFFLINE
04/03/2017 16:47

Ciao patel,
non gira:


Dim wOut As Worksheet

Set wOut = Sheets("Foglio2").Name = "ricerca"

john
---------------
excel 2007
Post: 1.053
Registrato il: 10/10/2013
Città: VICENZA
Età: 69
Utente Veteran
365
OFFLINE
04/03/2017 17:25

ciao
funziona

non capisco perché
ti complichi la vita
con



Dim wOut As Worksheet

Set wOut = Sheets("Foglio2").Name = "ricerca"




basta scrivere


Sheets("Foglio2").Name = "ricerca"



ma vale una volta sola [SM=g27823]






Post: 3.748
Registrato il: 13/03/2012
Città: LIVORNO
Età: 78
Utente Master
2010
OFFLINE
04/03/2017 17:33

Re:
john_cash, 04/03/2017 16.47:

Ciao patel,
non gira:


Dim wOut As Worksheet

Set wOut = Sheets("Foglio2").Name = "ricerca"

john



perché vuoi fare come ti pare ? se ti piace proprio usare il set

Dim wOut As Worksheet
Set wOut = Sheets("Foglio2")
wOut.Name = "ricerca"
[Modificato da patel45 04/03/2017 18:14]

----------
Win 10 - Excel 2010
allega un file di esempio, guadagnerai tempo tu e lo farai risparmiare a chi ti aiuta
Post: 388
Registrato il: 28/05/2011
Città: MILANO
Età: 43
Utente Senior
excel 2000/2007
OFFLINE
04/03/2017 22:55

Grazie a tutti.
Un saluto.
john
---------------
excel 2007
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]
Feed | Forum | Bacheca | Album | Utenti | Cerca | Login | Registrati | Amministra
Tutti gli orari sono GMT+01:00. Adesso sono le 13:17. Versione: Stampabile | Mobile | Regolamento | Privacy
FreeForumZone [v.6.1] - Copyright © 2000-2024 FFZ srl - www.freeforumzone.com