| | Post: 10 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
31/07/2017 12:25 | |
Buongiorno, vi allego un file Excel dove io scrivo tutti i dipendenti , ho creato due pulsanti uno numera righe e sembra funzionare ( se aggiungo una riga in mezza schiacciando il pulsante le rinumera tutte .
Un atro ordine alfabetico avevo inserito un macro ma non cè più e non so come fare.
Poi vorrei creare un pulsante cerca per cercare per nome il dipendente ma non so come si fa.
Lo so che cè la ricerca nel programma ma questo tasto mi serve per i miei colleghi che non hanno dimestichezza,.
Creando dei pulsanti rapidi rendo il lavoro meno difficile.
Grazie di Cuore [Modificato da Ennio.63 31/07/2017 13:35] |
|
| | Post: 3.390 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
31/07/2017 12:43 | |
Prova con questa macro da abbinare ad un pulsante
vb Sub trova()
Dim cog As String
cog = InputBox("Inserire il cognome")
With Sheets("ELENCO GENERALE AGGIORNATO").Range("D:D")
Set Rng = .Find(What:=cog, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Rng.Select
Else
MsgBox "Nominativo non trovato"
End If
End With
End Sub
Alfredo |
| | Post: 10 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
31/07/2017 12:58 | |
Ok ma come creo il tasto che mi serve per la ricerca ? |
| | Post: 3.391 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
31/07/2017 13:25 | |
Come hai creato gli altri due presenti sul foglio.
Comunque queste sono conoscenze basilari di Excel; se fai una ricerca con Google trovi una miriade di informazioni al riguardo.
Alfredo |
| | Post: 12 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
31/07/2017 13:39 | |
hai ragione
|
| | Post: 13 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
31/07/2017 16:09 | |
Non funziona |
| | Post: 3.393 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
31/07/2017 16:20 | |
Che significa,"non funziona"?
Fai vedere quello che hai fatto per risolvere il problema. [Modificato da alfrimpa 31/07/2017 16:40]
Alfredo |
| | Post: 14 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
31/07/2017 17:03 | |
|
| | Post: 3.394 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
31/07/2017 17:40 | |
Non funziona perché non hai associato nessuna macro al pulsante che hai creato.
Ora Cerca con Google: "Excel VBA come associare una macro a pulsante" e prova ad associare la macro che ho scritto al pulsante.
Questa ti mostra una finestra dove inserire un cognome; quando clicchi su Ok il cursore si posiziona sulla cella che contiene il cognome digitato.
P.S. Guarda che il foglio "ELENCO GENERALE AGGIORNATO" ha uno spazio in più nel nome; lo devi togliere. [Modificato da alfrimpa 31/07/2017 17:48]
Alfredo |
| | Post: 15 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
31/07/2017 19:12 | |
l'QUANDO EFFETTUO LA RICERCA PER COGNOME LUI VA SUL COGNOME
ESEMPIO : CERCO rossi LUI LO TROVA MA SE IO HO DUE rOSSI LUI TROVA SOLO IL PRIMO
poI SE MI DAI UNA FORMULA PER ABBINARE AL PULSANTE ORDINE ALFABETICO.
Grazie |
| | Post: 3.400 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
31/07/2017 19:19 | |
Sei tu che devi trovare il modo per gestire eventuali omonimie.
Per l'ordinamento fai l'operazione manualmente attivando il registratore di macro ed al termine avrai il codice da abbinare ad un altro pulsante.
Alfredo |
| | Post: 16 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
31/07/2017 19:27 | |
Vedi se cerco rossi lui non trova tutti i rossi ma si ferma al primo
dove sbaglio? |
| | Post: 3.401 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
31/07/2017 20:09 | |
Ma è normale che la macro funzioni così
Io non ho capito qual è il risultato che vuoi raggiungere.
Se ci sono tre Rossi che deve succedere?
Alfredo |
| | Post: 17 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
01/08/2017 15:54 | |
mi da errore : with Sheets ("ELENCO GENERALE AGGIORNATO") LO SEGNA IN GIALLO Sub trova()
Dim cog As String
cog = InputBox("Inserire il cognome")
With Sheets("ELENCO GENERALE AGGIORNATO").Range("D:D")
Set Rng = .Find(What:=cog, _
After:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Rng.Select
Else
MsgBox "Nominativo non trovato"
End If
End With
End Sub
|
| | Post: 3.404 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
01/08/2017 16:36 | |
Non leggi bene quello che scrivo.
alfrimpa, 31/07/2017 17.40:
P.S. Guarda che il foglio "ELENCO GENERALE AGGIORNATO" ha uno spazio in più nel nome; lo devi togliere.
[Modificato da alfrimpa 01/08/2017 16:40]
Alfredo |
| | Post: 18 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
01/08/2017 17:27 | |
|
| | Post: 19 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
01/08/2017 18:19 | |
Scusami visto che mi trovo posso creare un pulsante per stampare ?
hai per caso una formula da inserire, Grazie di cuore |
| | Post: 3.405 | Registrato il: 21/06/2013
| Città: NAPOLI | Età: 70 | Utente Master | Excel 365 | | ONLINE |
|
01/08/2017 18:39 | |
Usa il registratore di macro.
Io non ho nessuna "formula"
E comincia a studiare un po' di vba; a questo mondo nessuno nasce "imparato". [Modificato da alfrimpa 01/08/2017 18:40]
Alfredo |
| | Post: 20 | Registrato il: 27/06/2017
| Città: LATINA | Età: 60 | Utente Junior | 2010 | | OFFLINE | |
|
01/08/2017 18:48 | |
|
|
|