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
| Private Sub importer_Click()
Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
End Function
Dim adresse As String
Dim adresse_1 As String
Dim pos_w As String
Dim pos_rm As String
Dim pos_mob As String
Dim pos_cc As String
Dim pos_rc As String
Dim pos_nrc As String
Dim pos As String
Dim tableaux As String
For i = 1 To 6 Step 1
If i = 1 Then
pos_w = pos
case_coche = weight
tableaux = "weight"
End If
If i = 2 Then
pos_rm = pos
case_coche = reliabilty
tableaux = "reliabilty maintainability (DMC)"
End If
If i = 3 Then
pos_mob = pos
case_coche = make_or_buy
tableaux = "Make or Buy"
End If
If i = 4 Then
pos_cc = pos
case_coche = Coponent_Costs
tableaux = "Coponent Costs"
End If
If i = 5 Then
pos_rc = pos
case_coche = RC_Costs
tableaux = "RC Costs"
End If
If i = 6 Then
pos_nrc = pos
case_coche = NRC
tableaux = "Total NRC & System"
End If
If case_coche = True Then
line1:
MsgBox "selectioner la chaine de caractéré qui sera remplacé par le tableau " & tableaux
import.Hide
line2:
If GetAsyncKeyState(&O2) = 1 Then
Next i
Else
GoTo line2
End If
End If
Next i
End Sub |
Partager