| | Post: 244 | Registrato il: 21/07/2020
| Età: 35 | Utente Junior | 2016 | | OFFLINE | |
|
30/04/2024 17:04 | |
Salve a tutti, ho una cartella nella quale ci sono circa 600 file excel. Ogni file contiene solo un foglio. Il mio scopo sarebbe che quanto vado ad aprire un foglio vorrei che si apre alla stessa percentuale d'ingrandimento (150%) questo deve valere per tutti i 600 fogli dei 600 file. Vi ringrazio in anticipo |
|
| | Post: 5.088 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
30/04/2024 19:12 | |
Francamente non penso che quanto chiedi si possa fare.
Quello che si può fare (ma un file per volta) è scrivere del codice VBA che imposti lo zoom come desiderato
Alfredo |
| | Post: 45 | Registrato il: 09/09/2022
| Età: 45 | Utente Junior | 2019 | | OFFLINE | |
|
30/04/2024 19:27 | |
Ciao Alfredo, ho visto in rete un codice vba che permette di ingrandire a piacimento, però come dicevo nella mia discussione mi serviva in automatico per tutti i 600 fogli. Perché facendo uno alla volta diventerebbe molto laborioso. |
| | Post: 5.089 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
30/04/2024 19:29 | |
Scusa Giacomo Sepe ma tu cosa c'entri con Simone8989 che ha aperto la discusisone?
Se hai un codice pubblicalo
Alfredo |
| | Post: 46 | Registrato il: 09/09/2022
| Età: 45 | Utente Junior | 2019 | | OFFLINE | |
|
30/04/2024 19:34 | |
Ecco il codice:
Sub DbZoom()
'UpdatebyExtendoffice20171215
Dim I As Long
Dim xActSheet As Worksheet
Set xActSheet = ActiveSheet
For I = 1 To ThisWorkbook.Sheets.Count
Sheets(I).Activate
ActiveWindow.Zoom = 150
Next
xActSheet.Select
End Sub |
| | Post: 5.090 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
30/04/2024 19:36 | |
Quello che si può fare è usare una macro (che deve stare in un altro file) che apra un file di quella cartella e imposti lo zoom a 150.
Tale macro si può anche creare usando il registratore di macro
Alfredo |
| | Post: 5.091 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
30/04/2024 19:58 | |
Ma la richiesta di Simone8989 è diversa.
Lui vorrebbe che automaticamente, nel momento in cui apre un file di specifica directory, venga applicato lo zoom e questo come ho già detto non è possibile.
E' possibile aprire un file alla volta (ed è questo che Simone8989 non vuole fare) eseguire una macro che imposta lo zoom.
La tua macro imposta lo zoom dopo che il file è stato aperto. [Modificato da alfrimpa 30/04/2024 20:00]
Alfredo |
| | Post: 1.386 | Registrato il: 02/04/2018
| Città: PESCARA | Età: 75 | Utente Veteran | EXCEL 2016 - SPREAD32 | | OFFLINE |
|
30/04/2024 20:07 | |
Giacomo Sepe (8LzB220909), 30/04/2024 19:27:
Ciao Alfredo, ho visto in rete un codice vba che permette di ingrandire a piacimento, però come dicevo nella mia discussione mi serviva in automatico per tutti i 600 fogli. Perché facendo uno alla volta diventerebbe molto laborioso.
@Giacomo Sepe
sei la stessa persona di Simone8989 ?
la frase qui sopra....mi serviva per i 600 fogli...
LEO
https://t.me/LordBrum |
| | Post: 5.092 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
30/04/2024 20:13 | |
L2018, 30/04/2024 20:07:
sei la stessa persona di Simone8989 ?
A me sembra evidente
Alfredo |
| | Post: 1.387 | Registrato il: 02/04/2018
| Città: PESCARA | Età: 75 | Utente Veteran | EXCEL 2016 - SPREAD32 | | OFFLINE |
|
30/04/2024 20:16 | |
Giacomo Sepe (8LzB220909), 30/04/2024 19:27:
Ciao Alfredo, ho visto in rete un codice vba che permette di ingrandire a piacimento, però come dicevo nella mia discussione mi serviva in automatico per tutti i 600 fogli. Perché facendo uno alla volta diventerebbe molto laborioso.
SEI PREGATO DI RISPONDERE ALLA MIA DOMANDA PRECEDENTE ALTRIMENTI PER IL MOMENTO MI LIMITO A BLOCCARE LA DISCUSSIONE
LEO
https://t.me/LordBrum |
| | Post: 1.390 | Registrato il: 02/04/2018
| Città: PESCARA | Età: 75 | Utente Veteran | EXCEL 2016 - SPREAD32 | | OFFLINE |
|
30/04/2024 20:27 | |
DISCUSSIONE BLOCCATA IN ATTESA DI SPIEGAZIONE DA PARTE DEI 2 UTENTI, SALVO ULTERIORI PROVVEDIMENTI
LEO
https://t.me/LordBrum |
|
|