Bonjour,

J'ai défini une variable me donnat le nom de mes onglets et je cherche à les selectionnerà prtir de cette variable. Mon problème je n'arrive pas à mettre la main sur la bonne syntaxe...

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
Dim FichierActif As String
Dim b As String 'Secteur Vendeur
 
 
'Ouverture du fichier Liste Clients
 
Workbooks.Open Filename:="C:\Documents and Settings\SFG185\Mes documents\CAP 2006\ANALYSES CAP 2006\PREVI 2006\GAINS PERTES 2006\LISTES LEADERS.XLS"
 
FichierActif = ActiveWorkbook.Name
 
b = Workbooks(FichierActif).Sheets("GAINS PERTES").Cells(3, 8)
 
 
Workbooks("LISTES LEADERS").Activate
sheets(b).select
Merci par avance à mon sauveur!!!

OS