| | 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 | |
è 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
|
| | Post: 3.748 | Registrato il: 13/03/2012
| Città: LIVORNO | Età: 78 | Utente Master | 2010 | | OFFLINE | |
|
04/03/2017 17:33 | |
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 |
|
|