liens

  • Initiateur de la discussion cupidon
  • Date de début
C

cupidon

Guest
Bonjour
j'ai fais des fiches clients dans plusieur feuille et dossier
et je voudrais savoir comment je peux faire
quand je tape le nom du client faire un lien sur sa fiche

Exemple
Durant tomber sur sa fiche
Dupond tomer sur sa fiche
 

Tonio 74

XLDnaute Occasionnel
Salut Cupidon, Le Forum,

Regarde le fichier joint Zippé.

@+ ;) [file name=Pour_Cupidon.zip size=1999]http://www.excel-downloads.com/components/com_simpleboard/uploaded/files/Pour_Cupidon.zip[/file]
 

Pièces jointes

  • Pour_Cupidon.zip
    2 KB · Affichages: 13
C

Cupidon

Guest
merci
mes c'est encore plus compliquer que sa
c'est a dire qu'il y a un recherhcev et en tapant le nom de la personne j'ai son nom et prenom qui s'affiche et de la je dois faire un liens partant directement sur sa fiche
 
T

Temjeh

Guest
Bonjour le forum
Bonjour Cupidon

fait toi un bouton et met ca en-dessous

Dim countTot As Long
Dim counter As Long
Dim strSearchString As String
Dim ws As Object
Dim foundCell As Variant
Dim loopAddr As Variant
Dim returnValue As String
strSearchString = InputBox(Prompt:='Saisir la valeur à chercher.', Title:='Recherche')
If strSearchString = '' Then Exit Sub
For Each ws In Worksheets
countTot = countTot + Application.CountIf(ws.UsedRange, '=' & strSearchString)
Next ws
If countTot = 0 Then
returnValue = MsgBox(' La client ' & strSearchString & ' n'est pas enregistrée ', vbOKOnly, ' Message ')
Else
counter = 0
For Each ws In Worksheets
With ws
.Activate
Set foundCell = .Cells.Find(What:=strSearchString, LookIn:=xlValues, LookAt:=xlPart)
If Not foundCell Is Nothing Then
loopAddr = foundCell.Address
Do
counter = counter + 1
foundCell.Activate
If countTot = 1 Then
returnValue = MsgBox(' La client ' & strSearchString & ' est enregistrée 1 seule fois ', vbOKOnly, ' Message ')
Exit Sub
End If
If counter = countTot Then
returnValue = MsgBox(' La client ' & strSearchString & ' sélectionnée est la dernière !', vbOKOnly, 'Message')
Exit Sub
Else
returnValue = MsgBox(' Le client ' & strSearchString & ' est le ' _
& counter & ' sur ' & countTot & ' existants. ' & _
vbLf & ' Voulez vous aller au suivant ? ', vbYesNo, 'Message')
If returnValue = vbNo Then Exit For
Set foundCell = .Cells.FindNext(After:=foundCell)
End If
Loop While Not foundCell Is Nothing And foundCell.Address <> loopAddr
End If
End With
Next ws
End If


A++

Temjeh
 
T

Temjeh

Guest
Bonjour à tous

Bien s&ucirc;r que si j,avais composé ce code j'aurais répond à ce poste dans au moins dix ans sous explorer 21 et window 2010!!!

Ce code vient d'ici par un pros qui m'a déjà aider.

Le seul m'érite c'est de l'avoir garder!!!

Merci

Temjeh
 

Discussions similaires

Réponses
5
Affichages
269

Statistiques des forums

Discussions
312 748
Messages
2 091 609
Membres
105 008
dernier inscrit
fatimazahrabouaouda16@gma