bonjour
voila mon logiciel de compte marche trés bien mais quand je change le fichier de place ou méme de pc il ne marche plus pouvez-vous me dire si je doit changer les codes pour pouvoir marcher sur d'autre pc
voila le code
merci
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91 Option Explicit 'l'API GetSystemMetrics permet de retrouver la résolution 'de l'écran. Private Declare Function GetSystemMetrics Lib "user32.dll" _ (ByVal nIndex As Long) As Long Private Sub CommandButton1_Click() Workbooks.Open Filename:=sChemin & "compte février.xls" End Sub Private Sub CommandButton10_Click() Workbooks.Open Filename:=sChemin & "compte octobre.xls" End Sub Private Sub CommandButton11_Click() Workbooks.Open Filename:=sChemin & "compte novembre.xls" End Sub Private Sub CommandButton12_Click() Workbooks.Open Filename:=sChemin & "compte decembre.xls" End Sub Private Sub CommandButton13_Click() Workbooks.Open Filename:=sChemin & "semaine.xls" End Sub Private Sub CommandButton14_Click() Dim ie As Object Set ie = CreateObject("InternetExplorer.Application") With ie .Visible = True .Top = 0 .Left = 0 .Width = GetSystemMetrics(0) .Height = GetSystemMetrics(1) .Navigate "http://www.ca-norddefrance.fr/" End With End Sub Private Sub CommandButton15_Click() Dim wkb As Workbook Dim i As Long 'Application.DisplayAlerts = False For Each wkb In Workbooks With wkb If .Windows.Count > 1 And Not .Name = ThisWorkbook.Name Then For i = .Windows.Count To 2 Step -1 .Save .Close Next i End If End With Next wkb Set wkb = Nothing Application.Quit End Sub Private Sub CommandButton2_Click() Workbooks.Open Filename:=sChemin & "compte janvier.xls" End Sub Private Sub CommandButton3_Click() Workbooks.Open Filename:=sChemin & "compte mars.xls" End Sub Private Sub CommandButton4_Click() Workbooks.Open Filename:=sChemin & "compte avril.xls" End Sub Private Sub CommandButton5_Click() Workbooks.Open Filename:=sChemin & "compte mai.xls" End Sub Private Sub CommandButton6_Click() Workbooks.Open Filename:=sChemin & "compte juin.xls" End Sub Private Sub CommandButton7_Click() Workbooks.Open Filename:=sChemin & "compte juillet.xls" End Sub Private Sub CommandButton8_Click() Workbooks.Open Filename:=sChemin & "compte aout.xls" End Sub Private Sub CommandButton9_Click() Workbooks.Open Filename:=sChemin & "compte septembre.xls" End Sub
Partager