aller automatiquement dans une cellule

Farscape

XLDnaute Junior
Salut,

J'ai encore besoin d'un ptit coup de main,
je doit créer des fiches par personne
je voudrait les créer sur une meme feuille (l'une en dessous de l'autre), mais j'aimerais qu'en haut avec un menu déroulant quand je choisisse tel ou tel personne, la feuille descende jusqu'a sa fiche.

Ci-joint une ébauche rapide

Merci.
[file name=Fiche.zip size=6474]http://www.excel-downloads.com/components/com_simpleboard/uploaded/files/Fiche.zip[/file]
 

Pièces jointes

  • Fiche.zip
    6.3 KB · Affichages: 25
  • Fiche.zip
    6.3 KB · Affichages: 32
  • Fiche.zip
    6.3 KB · Affichages: 24

Farscape

XLDnaute Junior
J'ai peut etre trouver une solution mais je n'arrive pas a ecrire la bonne phrase si quelqu'un connait mon erreur:

If Feuil1.Range('D4').Value = '1' Then ActiveWindow.SmallScroll Down:=-1000
If Feuil1.Range('D4').Value = '2' Then ActiveWindow.SmallScroll Up:=1000 And SmallScroll Down=21

La premiere ligne pas de probleme mais la deuxième il me met 'fin attendu'

ET la je coince

Merci
 

Farscape

XLDnaute Junior
Pour l'option avec recherche ca marche mais il n'est pas bien calé
CAD trop bas trop haut, j'aimerais si possible que la fiche tombe pil poil au centre

C'est pour cela que j'essaye Avec ActiveWindow.SmallScroll

car je n'aurais pas beaucoup de fiche.
donc si ca marche je le ferais pour le nombre de fiche que j'aurais
 

Farscape

XLDnaute Junior
Sub Macro1()
If Feuil1.Range('D4').Value = '1' Then ActiveWindow.SmallScroll Up:=1000
If Feuil1.Range('D4').Value = '2' Then
ActiveWindow.SmallScroll Up:=1000
ActiveWindow.SmallScroll Down:=21
If Feuil1.Range('D4').Value = '3' Then
ActiveWindow.SmallScroll Up:=1000
ActiveWindow.SmallScroll Down:=42
If Feuil1.Range('D4').Value = '4' Then
ActiveWindow.SmallScroll Up:=1000
ActiveWindow.SmallScroll Down:=63

End If

End Sub



voilà
 

tontoncarton

XLDnaute Occasionnel
Sub Macro1()
If Feuil1.Range('D4').Value = '1' Then
ActiveWindow.SmallScroll Up:=1000
end if

If Feuil1.Range('D4').Value = '2' Then
ActiveWindow.SmallScroll Up:=1000
ActiveWindow.SmallScroll Down:=21
end if

If Feuil1.Range('D4').Value = '3' Then
ActiveWindow.SmallScroll Up:=1000
ActiveWindow.SmallScroll Down:=42
end if

If Feuil1.Range('D4').Value = '4' Then
ActiveWindow.SmallScroll Up:=1000
ActiveWindow.SmallScroll Down:=63
End If

End Sub
 

Membres actuellement en ligne

Aucun membre en ligne actuellement.

Statistiques des forums

Discussions
312 305
Messages
2 087 084
Membres
103 459
dernier inscrit
Arnocal