Bonjour,
Je fais un macro qui me permet d'ouvrir un autre classeur dans lequel je fais un find et find.next mais je souhaite que se second classeur soit caché :
J'ai essayer :
windows("Classeur9").visible=false
et
application.visible=False
mais j'y arrive pas
Voici une partie de mon code :
etc...
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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 Public Sub CommandButton3_Click() TextBox2.Locked = True TextBox3.Locked = True TextBox4.Locked = True TextBox5.Locked = True TextBox6.Locked = True TextBox7.Locked = True TextBox8.Locked = True TextBox9.Locked = True Dim wb As Workbook Dim ws As Worksheet Dim c As Range Dim TR As String, FirstAddress As String, TabVal() As String, TabLig() As Integer Dim k As Integer Dim r As Range Dim li As Integer Set wb = Workbooks.Open("U:\ICDC\DPI\OPE\Oac\2.Applicatif\Référentiel applis.xls") Set ws = wb.Worksheets(1) Sheets("Réf applis").Select Range("A1").Select TR = Me.TextBox1.Text If TR <> "" Then With Worksheets("Réf applis").Range("a1:c1000") Set c = .Find(TR, LookIn:=xlValues, lookat:=xlPart) If c Is Nothing Then MsgBox "Aucune application trouvée!", , "Résultat" Else If Not c Is Nothing Then
merci par avance de votre aide
Partager