IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Macros et VBA Excel Discussion :

erreur macro "membre de methode ou de donnée introuvable"


Sujet :

Macros et VBA Excel

  1. #1
    Nouveau Candidat au Club
    Homme Profil pro
    Lycéen
    Inscrit en
    Mars 2012
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Lycéen
    Secteur : Finance

    Informations forums :
    Inscription : Mars 2012
    Messages : 3
    Points : 1
    Points
    1
    Par défaut erreur macro "membre de methode ou de donnée introuvable"
    Bonjour,


    Voici une partie d'un macro Lors de l'exécution, la macro me donne "membre de methode ou de donnée introuvable" et il se bloque a la ligne .Chart.ChartData.Activate
    merci pour votre aide.



    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
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    1248
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
    1289
    1290
    1291
    1292
    1293
    1294
    1295
    1296
    1297
    1298
    1299
    1300
    1301
    1302
    1303
    1304
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
    1329
    1330
    1331
    1332
    1333
    1334
    1335
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    1346
    1347
    1348
    1349
    Dim oPPTApp As New PowerPoint.Application
    Dim oShape As PowerPoint.Shape
    Dim oaxis As Graph.Axis
    Dim PPT_Pres As PowerPoint.Presentation
    Dim oGraph As Object
    Dim otable As Table
    Dim xlSourceRange As Excel.Range
     
    Dim OurBook As String, ExcelFile As String, PPTFile As String, ExcelSheet As String
    Dim SaveAsFile As String, FilePath As String, Todate As String, Ext As String
    Dim ExcelRange(9999) As String, PPTRange(9999) As String, ClearPPTRange(9999) As String
    Dim Prefix(9999) As String, Suffix(9999) As String, Transpose(9999) As String, DecPlace(9999) As Integer, ZeroReplaceBy(9999) As String
    Dim CurrentDetails(9999, 20) As String, CurrentMax As Long, MaxDetailCol As Long
    Dim SourceSheet(999) As String, UndupSheets(999, 2) As String
    Dim ErrList(9999) As String
    Dim max As Integer, dec_plc As Integer, ErrMax As Integer, SheetNo As Integer
    Dim NewValueForZero As String
    Dim Error As Boolean, ReplaceZero As Boolean
    Private Sub cmdClearTemplate_Click()
      Dim i As Long, j As Long, k As Long
      Dim found As Boolean
     
      DoEvents
      Application.ScreenUpdating = False
     
      OurBook = ActiveWorkbook.Name
     
      PPTFile = "": Ext = "": Error = False
      Sheets("Error Details").Select
      Sheets("Error Details").Unprotect ("ProtectThisSheet")
      With Sheets("Error Details")
        .Cells.Select
        Selection.Delete Shift:=xlUp
        .Range("A1").Select
      End With
      Sheets("Error Details").Protect ("ProtectThisSheet")
     
      ErrList(0) = "The following errors are found in the Details Sheet": ErrList(1) = ""
      ErrMax = 1
      With Sheets("Files")
         PPTFile = Trim(.Range("B2").Value)
         If (PPTFile = "") Then
           ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : PPT File is not properly specified in the Details Page!"
         End If
         If (UCase(Right(PPTFile, 4)) <> ".PPT") And (UCase(Right(PPTFile, 5)) <> ".PPTX") Then
            ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : File specified in Files Sheet is not a PPT File!"
         End If
     
         If FileOrDirExists(PPTFile) Then
            If (UCase(Right(PPTFile, 5)) = ".PPTX") Then
               Ext = ".pptx"
            Else
               Ext = ".ppt"
            End If
         Else
            ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : " & PPTFile & " not found!"
         End If
     
         FilePath = Mid(PPTFile, 1, InStrRev(PPTFile, "\") - 1)
         Call LoadClearDetails
     
         If (ErrMax > 1) Then
            Sheets("Error Details").Unprotect ("ProtectThisSheet")
            With Sheets("Error Details")
              For i = 0 To ErrMax
                 .Range("A" & i + 1).Value = ErrList(i)
              Next i
              .Range("A1").Font.Bold = True
            End With
            Sheets("Error Details").Protect ("ProtectThisSheet")
            MsgBox ("Error! Check the Error Details Sheet")
            End
         End If
         If (Error = True) Then Exit Sub
         Call ClearValues
         If (Error = True) Then Exit Sub
      End With
      Application.ScreenUpdating = True
    End Sub
     
    Private Sub cmdUpdate_Click()
      Dim i As Long, j As Long, k As Long
      Dim found As Boolean
     
      DoEvents
      Application.ScreenUpdating = False
     
      OurBook = ActiveWorkbook.Name
      SaveAsFile = "Temp"
      Todate = Format(Date, "dd-mmm-yyyy")
     
      ExcelFile = "": PPTFile = "": Ext = "": Error = False:
      Sheets("Error Details").Select
      Sheets("Error Details").Unprotect ("ProtectThisSheet")
      With Sheets("Error Details")
        .Cells.Select
        Selection.Delete Shift:=xlUp
        .Range("A1").Select
      End With
      Sheets("Error Details").Protect ("ProtectThisSheet")
     
      ErrList(0) = "The following errors are found in the Details Sheet": ErrList(1) = ""
      ErrMax = 1
      With Sheets("Files")
         ExcelFile = Trim(.Range("B1").Value)
         PPTFile = Trim(.Range("B2").Value)
     
         If (ExcelFile = "") Or (PPTFile = "") Then
           ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Files are not properly specified in the Details Page!"
         End If
         If (UCase(Right(ExcelFile, 4)) <> ".XLS") And (UCase(Right(ExcelFile, 5)) <> ".XLSX") Then
            ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : File specified in Files Sheet is not an Excel File!"
         End If
         If (UCase(Right(PPTFile, 4)) <> ".PPT") And (UCase(Right(PPTFile, 5)) <> ".PPTX") Then
            ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : File specified in Files Sheet is not a PPT File!"
         End If
         If FileOrDirExists(ExcelFile) Then
         Else
            ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : " & ExcelFile & " not found!"
         End If
         If FileOrDirExists(PPTFile) Then
            If (UCase(Right(PPTFile, 5)) = ".PPTX") Then
               Ext = ".pptx"
            Else
               Ext = ".ppt"
            End If
         Else
            ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : " & PPTFile & " not found!"
         End If
     
         FilePath = Mid(PPTFile, 1, InStrRev(PPTFile, "\") - 1)
     
         If (Trim(.Range("C2").Value) <> "") Then SaveAsFile = Trim(.Range("C2").Value)
         ExcelSheet = "": ExcelSheet = Trim(.Range("B4").Value)
     
         NewValueForZero = "0"
         NewValueForZero = Trim(.Range("B5").Value)
     
         dec_plc = 0
         If (IsNumeric(Trim(.Range("B6").Value))) Then
         Else
           ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Decimal Places specified in the Details Page is not Numeric!"
         End If
         dec_plc = Int(Trim(.Range("B6").Value))
     
         Call LoadDetails
         If (ErrMax > 1) Then
            Sheets("Error Details").Unprotect ("ProtectThisSheet")
            With Sheets("Error Details")
              For i = 0 To ErrMax
                 .Range("A" & i + 1).Value = ErrList(i)
              Next i
              .Range("A1").Font.Bold = True
            End With
            Sheets("Error Details").Protect ("ProtectThisSheet")
            MsgBox ("Error! Check the Error Details Sheet")
            Exit Sub
         End If
         If (Error = True) Then Exit Sub
         Call Update
         If (Error = True) Then Exit Sub
      End With
      Application.ScreenUpdating = True
    End Sub
    Private Sub LoadDetails()
     Dim Wbk As Workbook, WS As Worksheet, Sheetnames As String
     Dim i As Long, j As Long, k As Long, LastRow As Long, RowNo As Long, ColNo As Long
     Dim ExcelDetail As String, PPTDetail As String, SlideDetail As String, TPose As String
     Dim Undup As Integer, Ctr As Integer, xlCtr As Integer, pptCtr As Integer
     Dim DecGT5 As Boolean, found As Boolean
     Dim SheetsX(999) As String, tmpExcel As String, tmpPPT As String
     Dim xlRangeDetails(999, 2) As String, pptRangeDetails(999, 2) As String
     Dim smallrng As Excel.Range
     
     max = 0: Undup = 0
     If (ExcelSheet <> "") Then SourceSheet(max) = ExcelSheet: UndupSheets(Undup, 1) = ExcelSheet
     Sheets("Details").Activate
     With Sheets("Details")
        LastRow = ActiveSheet.UsedRange.Rows.Count + ActiveSheet.UsedRange.Row - 1
        DecGT5 = False  'To check whether Dec place greater than 5 entered
        For i = 2 To LastRow
          If (Trim(.Range("A" & i).Value) <> "") And (Trim(.Range("B" & i).Value) <> "") And (Trim(.Range("C" & i).Value) <> "") And (Trim(.Range("D" & i).Value) <> "") And (Trim(.Range("E" & i).Value) <> "") And (Trim(.Range("F" & i).Value) <> "") Then
            max = max + 1
            ExcelDetail = Trim(.Range("F" & i).Value)
            PPTDetail = Trim(.Range("E" & i).Value)
            SlideDetail = Trim(.Range("A" & i).Value) & "-" & Trim(.Range("B" & i).Value) & "-" & Trim(.Range("C" & i).Value) & "-" & Trim(.Range("D" & i).Value)
            ExcelRange(max) = ExcelDetail
            PPTRange(max) = PPTDetail
            Prefix(max) = Trim(.Range("H" & i).Value)
            Suffix(max) = Trim(.Range("I" & i).Value)
     
            TPose = UCase(Trim(.Range("J" & i).Value))
            If (TPose <> "" And TPose <> "YES" And TPose <> "NO") Then
                ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Transpose column should be either Yes or No or Blank - Error At - J" & Trim(Str(i))
            End If
            Transpose(max) = "NO"
            If (TPose = "YES") Then Transpose(max) = TPose
     
            DecPlace(max) = dec_plc
            If (Trim(.Range("K" & i).Value) <> "") Then
               If (IsNumeric(Trim(.Range("K" & i).Value))) Then
               Else
                 ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Decimal Place column should be interger value (0 to 5) or blank - Error At - K" & Trim(Str(i))
               End If
               DecPlace(max) = UCase(Trim(.Range("K" & i).Value))
               If (DecPlace(max) > 5) Then DecPlace(max) = 5: DecGT5 = True
               If (DecGT5 = True) Then ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Dec Places found more than 5. Maximum should be 5! Check : L" & Trim(Str(i))
            End If
     
            ZeroReplaceBy(max) = NewValueForZero
            If (Trim(.Range("L" & i).Value) <> "") Then
               ZeroReplaceBy(max) = Trim(.Range("L" & i).Value)
            End If
     
            If (Trim(.Range("M" & i).Value) <> "") Then
               SourceSheet(max) = Trim(.Range("M" & i).Value)
               found = False
               For k = 1 To Undup
                   If (Trim(.Range("M" & i).Value) = UndupSheets(k, 1)) Then found = True
               Next k
               If Not (found) Then
                   Undup = Undup + 1: UndupSheets(Undup, 1) = Trim(.Range("M" & i).Value): UndupSheets(Undup, 2) = Str(i)
               End If
            Else
               SourceSheet(max) = SourceSheet(max - 1)
            End If
     
            ExcelRange(max) = SplitAndMake(ExcelRange(max), i, "F")
            PPTRange(max) = SlideDetail & ";" & SplitAndMake(PPTRange(max), i, "E")
     
            tmpExcel = ExcelRange(max)
            tmpPPT = Mid(PPTRange(max), InStrRev(PPTRange(max), ";") + 1)
            xlCtr = 0: pptCtr = 0
            For k = 1 To Len(tmpExcel)
                If (Mid(tmpExcel, k, 1) = ",") Then xlCtr = xlCtr + 1
            Next k
            For k = 1 To Len(tmpPPT)
                If (Mid(tmpPPT, k, 1) = ",") Then pptCtr = pptCtr + 1
            Next k
            If (xlCtr <> pptCtr) Then
               ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Source Range and Destination Range are not one-to-one matching! Check : E" & Trim(Str(i)) & " and F" & Trim(Str(i))
            End If
            If (xlCtr = pptCtr) And (Transpose(max) <> "YES") Then
                Ctr = 0
                On Error Resume Next
                For Each smallrng In ActiveSheet.Range(tmpExcel).Areas
                  smallrng.Select
                  With smallrng
                     Ctr = Ctr + 1
                     xlRangeDetails(Ctr, 0) = i
                     xlRangeDetails(Ctr, 1) = smallrng.Rows.Count
                     xlRangeDetails(Ctr, 2) = smallrng.Columns.Count
                  End With
                Next smallrng
                Ctr = 0
                On Error Resume Next
                For Each smallrng In ActiveSheet.Range(tmpPPT).Areas
                  smallrng.Select
                  With smallrng
                     Ctr = Ctr + 1
                     pptRangeDetails(Ctr, 1) = smallrng.Rows.Count
                     pptRangeDetails(Ctr, 2) = smallrng.Columns.Count
                  End With
                Next smallrng
                For k = 1 To Ctr
                    If (xlRangeDetails(k, 1) <> pptRangeDetails(k, 1)) Or (xlRangeDetails(k, 2) <> pptRangeDetails(k, 2)) Then
                       ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Source Range and Destination Range are different - Check the rows and columns of each range in E" & Trim(xlRangeDetails(k, 0)) & " and F" & Trim(xlRangeDetails(k, 0))
                       Exit For
                    End If
                Next k
            End If
          End If
        Next i
     End With
    Application.EnableCancelKey = False
    Set Wbk = Application.Workbooks.Open(ExcelFile)
     k = 0
     For Each WS In Wbk.Sheets
         k = k + 1
         SheetsX(k) = WS.Name
     Next WS
     Wbk.Close
     Set Wbk = Nothing: Set WS = Nothing
    Application.EnableCancelKey = True
     
     If (Trim(UndupSheets(0, 1)) = "") Then
         ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : No Sheet Name mentioned in the Files Sheet!"
     End If
     For i = 0 To Undup
         found = False
         For j = 1 To k
             If (UndupSheets(i, 1) = SheetsX(j)) Then found = True
         Next j
         If Not (found) Then
            If (i = 0) And (Trim(UndupSheets(i, 1)) <> "") Then
                ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Sheet Name - '" & Trim(UndupSheets(i, 1)) & "' mentioned in the Files Sheet not found in the Source Workbook!"
            End If
            If (i > 0) Then
                ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Sheet Name - '" & UndupSheets(i, 1) & "' mentioned in the Details Sheet - (M" & Trim(UndupSheets(i, 2)) & ") - not found in the Source Workbook!"
            End If
         End If
     Next i
    End Sub
    Private Sub LoadClearDetails()
     Dim i As Long, LastRow As Long
     Dim PPTDetail As String, SlideDetail As String
     max = 0
     Sheets("Details").Activate
     With Sheets("Details")
        LastRow = ActiveSheet.UsedRange.Rows.Count + ActiveSheet.UsedRange.Row - 1
        For i = 2 To LastRow
          If (Trim(.Range("A" & i).Value) <> "") And (Trim(.Range("B" & i).Value) <> "") And (Trim(.Range("C" & i).Value) <> "") And (Trim(.Range("D" & i).Value) <> "") And (Trim(.Range("E" & i).Value) <> "") Then
            max = max + 1
            PPTDetail = Trim(.Range("E" & i).Value)
            SlideDetail = Trim(.Range("A" & i).Value) & "-" & Trim(.Range("B" & i).Value) & "-" & Trim(.Range("C" & i).Value) & "-" & Trim(.Range("D" & i).Value)
            ClearPPTRange(max) = PPTDetail
            ClearPPTRange(max) = SlideDetail & ";" & SplitAndMake(ClearPPTRange(max), i, "E")
            If (Error = True) Then MsgBox ("Error At Row : " & Str(i)): Exit Sub
          End If
        Next i
        If (DecGT5 = True) Then MsgBox ("ERROR : Dec Places (in column L of Details Sheet) found more than 5. Maximum should be 5!")
     End With
     
    End Sub
    Private Function SplitAndMake(SelRange As String, RowNo As Long, ColIndx As String) As String
      Dim i As Integer, j As Integer, k As Integer, nxti As Integer, nxtk As Integer
      Dim LSB As Integer, RSB As Integer, LRSqB As Integer, P1 As Integer, P2 As Integer
      Dim sp As Integer, ep As Integer, no As Integer, Rcount As Integer, CCount As Integer, RSqBr As Integer
      Dim tempStr As String, Set1 As String, Set2 As String, FinalStr As String, Bakki As String
      Dim Parse(999) As String, RowSet(99) As String, ColSet(99) As String
      Dim SRow As String, ERow As String, SCol As String, ECol As String
      Dim found As Boolean, SqBrClose As Boolean, invalid As Boolean, colon As Boolean, Proceed As Boolean
      Dim char As String, nxt As String, chkStr As String
     
      LSB = 0: RSB = 0: found = False: invalid = False
      For i = 1 To Len(SelRange)
          char = Mid(SelRange, i, 1)
          nxt = "": If (i < Len(SelRange)) Then nxt = Mid(SelRange, i + 1, 1)
          If (char = "[") Then LSB = LSB + 1
          If (char = "]") Then RSB = RSB + 1
          If (char = ",") Or (char = "]") Then colon = False
          If (char = ":") Then
             If (colon) Then invalid = True Else colon = True
          End If
     
          Select Case Asc(char)
            Case 65 To 90, 97 To 122, 44, 48 To 57, 58, 91, 93
            Case Else
              found = True
          End Select
          If (char = "[") Or (char = ":") Then
             If (nxt <> "") Then
                Select Case Asc(nxt)
                   Case 65 To 90, 97 To 122, 48 To 57
                   Case Else
                     invalid = True
                End Select
             End If
          End If
          If (char = ",") Then
             If (nxt <> "") Then
                Select Case Asc(nxt)
                   Case 65 To 90, 97 To 122, 48 To 57, 91
                   Case Else
                     invalid = True
                End Select
             End If
          End If
          If (nxt = ":") Then
              Select Case Asc(char)
                 Case 65 To 90, 97 To 122, 48 To 57
                 Case Else
                   invalid = True
              End Select
          End If
          If (i = Len(SelRange)) Then
                Select Case Asc(char)
                   Case 48 To 57, 93
                   Case Else
                     invalid = True
                End Select
          End If
      Next i
     
      If (LSB <> RSB) Then
        ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Mismatch in Square Brackets! Check : " & ColIndx & Trim(Str(RowNo))
      End If
      If (found) Then
        ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Invalid Character ! Check : " & ColIndx & Trim(Str(RowNo))
      End If
      If (invalid) Then
        ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Syntax not correct ! Check : " & ColIndx & Trim(Str(RowNo))
      End If
     
      FinalStr = ""
      If (InStr(SelRange, "[") > 0) Then
         sp = 0: ep = 0: no = 0: Bakki = "": RSqBr = 0
         i = 1
         While (i <= Len(SelRange))
           j = 0: nxti = i + 1
           If (Mid(SelRange, i, 1) = "[") Then
              sp = i + 1: found = True: SqBrClose = False
              For j = i + 1 To Len(SelRange)
                  If (Mid(SelRange, j, 1) = "]") Then
                    ep = j - 1: RSqBr = RSqBr + 1: LRSqB = j
                    tempStr = Trim(Mid(SelRange, sp, ep - (sp - 1)))
                    SqBrClose = True
                    Bakki = "": If (j + 1 <= Len(SelRange)) Then Bakki = Mid(SelRange, j + 1, Len(SelRange) - j)
                    nxti = j + 1
                    Exit For
                  End If
                  If ((j = Len(SelRange)) Or (Mid(SelRange, j, 1) = "[")) And (SqBrClose = False) Then
                    ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Square Bracket Not Closed! Check : " & ColIndx & Trim(Str(RowNo))
                    Error = True
                  End If
              Next j
              If (sp > 0) And (ep > 0) Then
                 no = no + 1
                 Parse(no) = tempStr
                 sp = 0: ep = 0
              End If
           End If
           If (i < Len(SelRange)) And (Mid(SelRange, i, 1) = ",") And (Mid(SelRange, i + 1, 1) <> "[") Then
              sp = i + 1
              For j = i + 1 To Len(SelRange)
                  If (Mid(SelRange, j, 1) = ",") Or (j = Len(SelRange)) Then
                    If (j < Len(SelRange)) Then ep = j - 1 Else ep = j
                    tempStr = Trim(Mid(SelRange, sp, ep - (sp - 1)))
                    Bakki = "": If (j + 1 <= Len(SelRange)) Then Bakki = Mid(SelRange, j + 1, Len(SelRange) - j)
                    nxti = j
                    Exit For
                  End If
              Next j
              If (sp > 0) And (ep > 0) Then
                 no = no + 1
                 Parse(no) = tempStr
                 sp = 0: ep = 0
              End If
           End If
           If (i < Len(SelRange)) And (Mid(SelRange, i, 1) <> ",") And (Mid(SelRange, i, 1) <> "[") Then
              sp = i
              For j = i + 1 To Len(SelRange)
                  If (Mid(SelRange, j, 1) = ",") Or (Mid(SelRange, j, 1) = "]") Or (j = Len(SelRange)) Then
                    If (j < Len(SelRange)) Then ep = j - 1 Else ep = j
                    tempStr = Trim(Mid(SelRange, sp, ep - (sp - 1)))
                    Bakki = "": If (j + 1 <= Len(SelRange)) Then Bakki = Mid(SelRange, j + 1, Len(SelRange) - j)
                    nxti = j + 1
                    Exit For
                  End If
              Next j
              If (sp > 0) And (ep > 0) Then
                 no = no + 1
                 Parse(no) = tempStr
                 sp = 0: ep = 0
              End If
           End If
           i = nxti
         Wend
     
         k = 1
         While (k <= no)
             nxtk = k + 1
             Set1 = "": Set2 = "": tempStr = "": Proceed = False
             If (Verify(Parse(k)) = 1) Then
                Set1 = Parse(k)
                If (Verify(Parse(k + 1)) = 2) Then
                    Set2 = Parse(k + 1)
                    Proceed = True: nxtk = k + 2
                End If
             End If
             If (Verify(Parse(k)) = 2) Then
                If (Verify(Parse(k + 1)) = 1) Then
                    Set2 = Parse(k)
                    Set1 = Parse(k + 1)
                    Proceed = True: nxtk = k + 2
                Else
                    Set1 = Parse(k)
                End If
             End If
             If (Verify(Parse(k)) = 3) Then
                Set1 = Parse(k)
             End If
     
             If (Proceed) Then
                sp = 1: ep = 0: Rcount = 0
                If (InStr(Set1, ",") > 0) Then
                  For i = 1 To Len(Set1)
                     If (Mid(Set1, i, 1) = ",") Or (i = Len(Set1)) Then
                       If (Mid(Set1, i, 1) = ",") Then ep = i - 1 Else ep = i
                       tempStr = Mid(Set1, sp, ep - (sp - 1))
                       Rcount = Rcount + 1: RowSet(Rcount) = Trim(tempStr)
                       sp = i + 1
                     End If
                  Next i
                End If
                If (InStr(Set1, ",") = 0) Then Rcount = Rcount + 1: RowSet(Rcount) = Set1
     
                sp = 1: ep = 0: CCount = 0
                If (InStr(Set2, ",") > 0) Then
                  For i = 1 To Len(Set2)
                     If (Mid(Set2, i, 1) = ",") Or (i = Len(Set2)) Then
                       If (Mid(Set2, i, 1) = ",") Then ep = i - 1 Else ep = i
                       tempStr = Mid(Set2, sp, ep - (sp - 1))
                       CCount = CCount + 1: ColSet(CCount) = tempStr
                       sp = i + 1
                     End If
                  Next i
                End If
                If (InStr(Set2, ",") = 0) Then CCount = CCount + 1: ColSet(CCount) = Set2
     
                tempStr = ""
                For i = 1 To Rcount
                   SRow = "": ERow = ""
                   If (InStr(RowSet(i), ":") > 0) Then
                      SRow = Trim(Mid(RowSet(i), 1, InStr(RowSet(i), ":") - 1))
                      ERow = Trim(Mid(RowSet(i), InStr(RowSet(i), ":") + 1, Len(RowSet(i)) - InStr(RowSet(i), ":")))
                   End If
                   If (InStr(RowSet(i), ":") = 0) Then SRow = RowSet(i): ERow = RowSet(i)
                   For j = 1 To CCount
                     SCol = "": ECol = ""
                     If (InStr(ColSet(j), ":") > 0) Then
                       SCol = Trim(Mid(ColSet(j), 1, InStr(ColSet(j), ":") - 1))
                       ECol = Trim(Mid(ColSet(j), InStr(ColSet(j), ":") + 1, Len(ColSet(j)) - InStr(ColSet(j), ":")))
                     End If
                     If (InStr(ColSet(j), ":") = 0) Then SCol = ColSet(j): ECol = ColSet(j)
                     tempStr = tempStr & SCol & SRow & ":" & ECol & ERow & ","
                   Next j
                Next i
                If (tempStr <> ":,") Then
                   If (Right(tempStr, 1) = ",") Then
                       FinalStr = FinalStr & "," & Left(tempStr, Len(tempStr) - 1)
                   Else
                       FinalStr = FinalStr & "," & tempStr
                   End If
                End If
             End If
             If Not (Proceed) And (Set1 <> "") Then
                   tempStr = Set1
                   FinalStr = FinalStr & "," & tempStr
             End If
             k = nxtk
         Wend
      End If
      If (InStr(SelRange, "[") = 0) Then FinalStr = SelRange
      If (Bakki <> "") Then FinalStr = FinalStr & "," & Bakki
      If (Left(FinalStr, 1) = ",") Then FinalStr = Trim(Mid(FinalStr, 2, Len(FinalStr) - 1))
     
    '''MsgBox (FinalStr)
      invalid = False
      For i = 1 To Len(FinalStr)
          char = Mid(FinalStr, i, 1)
          nxt = "": If (i < Len(FinalStr)) Then nxt = Mid(FinalStr, i + 1, 1)
          Select Case Asc(char)
             Case 65 To 90, 97 To 122
                If (nxt <> "") Then
                    Select Case Asc(nxt)
                      Case 65 To 90, 97 To 122, 48 To 57
                         Case Else
                           invalid = True
                    End Select
                End If
          End Select
          Select Case Asc(char)
             Case 48 To 57
                If (nxt <> "") Then
                    Select Case Asc(nxt)
                      Case 48 To 57, 44, 58
                         Case Else
                           invalid = True
                    End Select
                End If
          End Select
          If (char = ",") Then
             If (nxt <> "") Then
                Select Case Asc(nxt)
                   Case 65 To 90, 97 To 122
                   Case Else
                     invalid = True
                End Select
             End If
          End If
          If (i = Len(FinalStr)) Then
                Select Case Asc(char)
                   Case 48 To 57
                   Case Else
                     invalid = True
                End Select
          End If
      Next i
      If (invalid) Then
        ErrMax = ErrMax + 1: ErrList(ErrMax) = "ERROR : Invalid Range ! Check : " & ColIndx & Trim(Str(RowNo))
      End If
      SplitAndMake = FinalStr
     
    End Function
    Private Function Verify(SelRange As String) As Integer
      Dim i As Integer, j As Integer, k As Integer
      Dim OnlyDigit As Boolean, OnlyAlpha As Boolean
      Dim char As String
      OnlyAlpha = True: OnlyDigit = True
      For i = 1 To Len(SelRange)
          char = Mid(SelRange, i, 1)
          Select Case Asc(char)
            Case 65 To 90, 97 To 122
              OnlyDigit = False
            Case 48 To 57
              OnlyAlpha = False
          End Select
      Next i
      k = 0
      If (OnlyDigit = True) And (OnlyAlpha = False) Then k = 1
      If (OnlyDigit = False) And (OnlyAlpha = True) Then k = 2
      If (OnlyDigit = False) And (OnlyAlpha = False) Then k = 3
      Verify = k
    End Function
    Private Sub Update()
      Dim Wbk As Workbook, NWbk As Workbook
      Dim WS As Worksheet, NWS As Worksheet
      Dim fs As Variant
      Dim totSlides As Integer
      Dim Slide_No As Long, Obj_No As Long
      Dim Slide As String, tempStr As String, PPTRnge As String, xlRnge As String, Obj_Name As String, Obj_ID As String, chkName As String
      Dim smallrng As Excel.Range, cell As Excel.Range
      Dim i As Integer, j As Integer, sp As Integer, ep As Integer, rng As Integer
      Dim RowNo As Integer, ColNo As Integer, Ctr As Integer
      Dim SubRange(99) As String
      Dim Slides(9999) As Integer, UsedSlides(9999) As Integer, DCellRow(999) As Integer, DCellCol(999) As Integer
      Dim found As Boolean, Embed As Boolean
     
     
      Set fs = New Scripting.FileSystemObject
      Set Wbk = Application.Workbooks.Open(ExcelFile)
     
    On Error Resume Next
     
    '' Open Powerpoint
      oPPTApp.Visible = msoTrue
      Set PPT_Pres = oPPTApp.Presentations.Open(PPTFile)
     
      For i = 1 To max
        Slide = Mid(PPTRange(i), 1, InStr(PPTRange(i), ";") - 1)
        PPTRnge = Trim(Mid(PPTRange(i), InStr(PPTRange(i), ";") + 1))
        xlRnge = ExcelRange(i)
     
        sp = 1: ep = 0: rng = 0: tempStr = ""
        If (InStr(PPTRnge, ",") > 0) Then
           For j = 1 To Len(PPTRnge)
             If (Mid(PPTRnge, j, 1) = ",") Or (j = Len(PPTRnge)) Then
               If (Mid(PPTRnge, j, 1) = ",") Then ep = j - 1 Else ep = j
               tempStr = Mid(PPTRnge, sp, ep - (sp - 1))
               rng = rng + 1: SubRange(rng) = Trim(tempStr)
               sp = j + 1
             End If
           Next j
        End If
        If (InStr(PPTRnge, ",") = 0) Then rng = 1: SubRange(rng) = PPTRnge
     
        tempStr = ""
        Slide_No = Int(Mid(Slide, 1, InStr(Slide, "-") - 1))
        tempStr = Mid(Slide, InStr(Slide, "-") + 1, Len(Slide) - InStr(Slide, "-"))
        Obj_No = Int(Mid(tempStr, 1, InStr(tempStr, "-") - 1))
        tempStr = Mid(tempStr, InStr(tempStr, "-") + 1, Len(tempStr) - InStr(tempStr, "-"))
        Obj_Name = Mid(tempStr, 1, InStr(tempStr, "-") - 1)
        Obj_ID = Mid(tempStr, InStr(tempStr, "-") + 1, Len(tempStr) - InStr(tempStr, "-"))
     
        Slides(i) = Slide_No
     
        Set WS = Wbk.Worksheets(SourceSheet(i))
        Wbk.Activate: WS.Activate: WS.Select
        For Each smallrng In ActiveSheet.Range(xlRnge).Areas
            With smallrng
                 rng = rng + 1
                 smallrng.Select
                 For Each cell In Intersect(Selection, smallrng)
                     If (Trim(cell.Value) <> "") And (IsNumeric(cell.Value)) Then
                        If (Val(cell.Value) = 0) Then
                          cell.Value = ZeroReplaceBy(i)
                        Else
                          cell.Value = Round(cell.Value, DecPlace(i))
                        End If
                     End If
                 Next cell
            End With
        Next smallrng
     
        PPT_Pres.Slides(Slide_No).Select
        If (UCase(Mid(Obj_Name, 1, 6)) = "OBJECT") Then
            Embed = False
            With oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
              If (.HasChart) Then
                 .Chart.ChartData.Activate
                 Set NWbk = .Chart.ChartData.Workbook
                 NWbk.Application.WindowState = xlMinimized
                 Set NWS = NWbk.Worksheets(1)
                 NWbk.Activate: NWS.Activate
              End If
              If (.HasChart = msoFalse) Then
                 Embed = True
                 If (.Type = msoEmbeddedOLEObject) Then
                    .OLEFormat.Activate
                    Set NWS = .OLEFormat.Object.Worksheets("Sheet1")
                 Else
                   Set oGraph = .OLEFormat.Object
                   Set NWS = oGraph.Application.DataSheet
                 End If
              End If
     
              Wbk.Activate: WS.Activate: WS.Select
              rng = 0: smallrng.Clear
              For Each smallrng In ActiveSheet.Range(xlRnge).Areas
                With smallrng
                    rng = rng + 1
                    smallrng.Select
                    smallrng.Copy
                    DoEvents
                    If (UCase(Transpose(i) = "YES")) Then
                        NWS.Range(SubRange(rng)).PasteSpecial Paste:=xlPasteValues, Transpose:=True
                    Else
                        NWS.Range(SubRange(rng)).PasteSpecial  'Here PasteSpecial is used instead of Paste - because PasteSpecial only pastes the range!
                    End If
     
                    DoEvents
                    Application.CutCopyMode = False
                End With
              Next smallrng
              DoEvents
              If (Embed = True) Then
                 DoEvents
                   .OLEFormat.Activate
                   .OLEFormat.Object.Charts("Chart1").Activate
                 DoEvents
              Else
                 DoEvents
                   .Chart.ChartData.Activate
                   .Chart.Refresh
                 DoEvents
              End If
              DoEvents
            End With
     
            If (Embed) Then
                oPPTApp.ActivePresentation.Slides(1).Select
            Else
               NWbk.Save: NWbk.Close
            End If
            Set NWbk = Nothing: Set NWS = Nothing
            oGraph.Application.Update
        End If
        If (UCase(Mid(Obj_Name, 1, 5)) = "TABLE") Or (UCase(Mid(Obj_Name, 1, 5)) = "GROUP") Then
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            Set otable = oShape.Table
            Wbk.Activate: WS.Activate: smallrng.Clear
            RowNo = 1: ColNo = 0: Ctr = 0
            For Each smallrng In ActiveSheet.Range(PPTRnge).Areas
              With smallrng
                smallrng.Select
                For Each cell In Intersect(Selection, smallrng)
                    cell.Select
                    Ctr = Ctr + 1
                    DCellRow(Ctr) = cell.Row
                    DCellCol(Ctr) = cell.Column
                Next cell
              End With
            Next smallrng
            smallrng.Clear: Ctr = 0
            For Each smallrng In ActiveSheet.Range(xlRnge).Areas
              With smallrng
                smallrng.Select
                For Each cell In Intersect(Selection, smallrng)
                  ColNo = ColNo + 1: Ctr = Ctr + 1
                  If (Trim(cell.Value) <> "") And (IsNumeric(cell.Value)) Then
                     If (Val(cell.Value) = 0) Then
                        cell.Value = ZeroReplaceBy(i)
                     Else
                          cell.Value = Round(cell.Value, DecPlace(i))
                     End If
                  End If
                  otable.cell(DCellRow(Ctr), DCellCol(Ctr)).Shape.TextFrame.TextRange.Text = cell.Value
                Next cell
              End With
            Next smallrng
        End If
        If (UCase(Mid(Obj_Name, 1, 9)) = "RECTANGLE") Or (UCase(Mid(Obj_Name, 1, 17)) = "ROUNDED RECTANGLE") Then
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            tempStr = "": If (Prefix(i) <> "") Then tempStr = Prefix(i)
            Wbk.Activate: WS.Activate: smallrng.Clear
            For Each smallrng In ActiveSheet.Range(xlRnge).Areas
              With smallrng
                smallrng.Select
                For Each cell In Intersect(Selection, smallrng)
                  tempStr = tempStr & Chr(32) & cell.Value
                Next cell
              End With
            Next smallrng
            If (Suffix(i) <> "") Then tempStr = tempStr & Suffix(i)
            oShape.TextFrame.TextRange.Text = tempStr
        End If
        If (UCase(Mid(Obj_Name, 1, 8)) = "TEXT BOX") Then            ''Note here Text Box is with a  space!
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            tempStr = "": 'tempStr = oShape.TextFrame.TextRange.Text
            Wbk.Activate: WS.Activate: smallrng.Clear
            For Each smallrng In ActiveSheet.Range(xlRnge).Areas
              With smallrng
                smallrng.Select
                For Each cell In Intersect(Selection, smallrng)
                  tempStr = Trim(cell.Value)
                Next cell
              End With
            Next smallrng
            oShape.TextFrame.TextRange.Text = tempStr
        End If
        If (UCase(Mid(Obj_Name, 1, 7)) = "TEXTBOX") Or (UCase(Mid(Obj_Name, 1, 5)) = "TITLE") Then
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            tempStr = "": If (Prefix(i) <> "") Then tempStr = Prefix(i)
            Wbk.Activate: WS.Activate: smallrng.Clear
            For Each smallrng In ActiveSheet.Range(xlRnge).Areas
              With smallrng
                smallrng.Select
                For Each cell In Intersect(Selection, smallrng)
                  If (tempStr <> "") Then tempStr = tempStr & Chr(32) & cell.Value
                  If (tempStr = "") Then tempStr = cell.Value
                Next cell
              End With
            Next smallrng
            If (Suffix(i) <> "") Then tempStr = tempStr & Suffix(i)
            oShape.TextFrame.TextRange.Text = tempStr
        End If
        If (UCase(Mid(Obj_Name, 1, 19)) = "CONTENT PLACEHOLDER") Or (UCase(Mid(Obj_Name, 1, 5)) = "CHART") Then
           Embed = False
     
           If (oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).HasChart) Then
              oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.ChartData.Activate
              Set NWbk = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.ChartData.Workbook
              NWbk.Application.WindowState = xlMinimized
              Set NWS = NWbk.Worksheets(1)
              NWbk.Activate: NWS.Activate
           End If
     
           If (oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).HasChart = msoFalse) Then
              Embed = True
              If (oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Type = msoEmbeddedOLEObject) Then
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Activate
                 Set NWS = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Object.Worksheets("Sheet1")
              End If
           End If
     
            Wbk.Activate: WS.Activate
            rng = 0: smallrng.Clear
            For Each smallrng In ActiveSheet.Range(xlRnge).Areas
              With smallrng
                  rng = rng + 1
                  smallrng.Select
                  smallrng.Copy
                  DoEvents
                  If (UCase(Transpose(i) = "YES")) Then
                      NWS.Range(SubRange(rng)).PasteSpecial Paste:=xlPasteValues, Transpose:=True
                  Else
                      NWS.Range(SubRange(rng)).PasteSpecial  'Here PasteSpecial is used instead of Paste - because PasteSpecial only pastes the range!
                  End If
                  DoEvents
                  Application.CutCopyMode = False
              End With
            Next smallrng
     
            DoEvents
            If (Embed = True) Then
               DoEvents
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Activate
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Object.Charts("Chart1").Activate
               DoEvents
            Else
               DoEvents
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.ChartData.Activate
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.Refresh
               DoEvents
            End If
            DoEvents
     
            If (Embed) Then
               oPPTApp.ActivePresentation.Slides(1).Select
            Else
              NWbk.Save: NWbk.Close
            End If
     
            Set NWbk = Nothing: Set NWS = Nothing
        End If
      Next i
     
      WS.Application.CutCopyMode = False
      Set oShape = Nothing:   Set oGraph = Nothing: Set otable = Nothing
      Set oPPTApp = Nothing:  Set oShape = Nothing
     
      PPT_Pres.SaveAs (FilePath & "\" & SaveAsFile & "_" & Todate & Ext)
     
    '  PPT_Pres.Close
      Set PPT_Pres = Nothing:
      Wbk.Close False
      Set WS = Nothing: Set Wbk = Nothing
     
      totSlides = 0: sp = 0
      For i = 1 To max
        found = False
        For j = 1 To sp
           If (UsedSlides(j) = Slides(i)) Then found = True: Exit For
        Next j
        If Not (found) Then totSlides = totSlides + 1: sp = sp + 1: UsedSlides(sp) = Slides(i)
      Next i
     
      Application.ScreenUpdating = True
      If (totSlides <= 1) Then
        MsgBox ("Done - Updated " & Str(totSlides) & " Slide!")
      ElseIf (totSlides > 1) Then
        MsgBox ("Done - Updated " & Str(totSlides) & " Slides!")
      End If
    End Sub
    Private Sub ClearValues()
      Dim NWbk As Workbook
      Dim NWS As Worksheet
      Dim fs As Variant
      Dim totSlides As Integer
      Dim Slide_No As Long, Obj_No As Long
      Dim Slide As String, tempStr As String, PPTRnge As String, xlRnge As String, Obj_Name As String, Obj_ID As String, chkName As String
      Dim smallrng As Excel.Range, cell As Excel.Range
      Dim i As Integer, j As Integer, sp As Integer, ep As Integer, rng As Integer
      Dim RowNo As Integer, ColNo As Integer, Ctr As Integer
      Dim SubRange(99) As String
      Dim Slides(9999) As Integer, UsedSlides(9999) As Integer, DCellRow(999) As Integer, DCellCol(999) As Integer
      Dim found As Boolean, Embed As Boolean
     
     
      Set fs = New Scripting.FileSystemObject
     
    On Error Resume Next
     
    '' Open Powerpoint
      oPPTApp.Visible = msoTrue
      Set PPT_Pres = oPPTApp.Presentations.Open(PPTFile)
     
      For i = 1 To max
        Slide = Mid(ClearPPTRange(i), 1, InStr(ClearPPTRange(i), ";") - 1)
        PPTRnge = Trim(Mid(ClearPPTRange(i), InStr(ClearPPTRange(i), ";") + 1))
        sp = 1: ep = 0: rng = 0: tempStr = ""
        If (InStr(PPTRnge, ",") > 0) Then
           For j = 1 To Len(PPTRnge)
             If (Mid(PPTRnge, j, 1) = ",") Or (j = Len(PPTRnge)) Then
               If (Mid(PPTRnge, j, 1) = ",") Then ep = j - 1 Else ep = j
               tempStr = Mid(PPTRnge, sp, ep - (sp - 1))
               rng = rng + 1: SubRange(rng) = Trim(tempStr)
               sp = j + 1
             End If
           Next j
        End If
        If (InStr(PPTRnge, ",") = 0) Then rng = 1: SubRange(rng) = PPTRnge
     
        tempStr = ""
        Slide_No = Int(Mid(Slide, 1, InStr(Slide, "-") - 1))
        tempStr = Mid(Slide, InStr(Slide, "-") + 1, Len(Slide) - InStr(Slide, "-"))
        Obj_No = Int(Mid(tempStr, 1, InStr(tempStr, "-") - 1))
        tempStr = Mid(tempStr, InStr(tempStr, "-") + 1, Len(tempStr) - InStr(tempStr, "-"))
        Obj_Name = Mid(tempStr, 1, InStr(tempStr, "-") - 1)
        Obj_ID = Mid(tempStr, InStr(tempStr, "-") + 1, Len(tempStr) - InStr(tempStr, "-"))
     
        Slides(i) = Slide_No
     
        PPT_Pres.Slides(Slide_No).Select
        If (UCase(Mid(Obj_Name, 1, 6)) = "OBJECT") Then
            Embed = False
            With oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
              If (.HasChart) Then
                 .Chart.ChartData.Activate
                 Set NWbk = .Chart.ChartData.Workbook
                 NWbk.Application.WindowState = xlMinimized
                 Set NWS = NWbk.Worksheets(1)
                 NWbk.Activate: NWS.Activate
              End If
              If (.HasChart = msoFalse) Then
                 Embed = True
                 If (.Type = msoEmbeddedOLEObject) Then
                    .OLEFormat.Activate
                    Set NWS = .OLEFormat.Object.Worksheets("Sheet1")
                 Else
                   Set oGraph = .OLEFormat.Object
                   Set NWS = oGraph.Application.DataSheet
                 End If
              End If
     
              rng = 0: smallrng.Clear
              For Each smallrng In NWS.Range(PPTRnge).Areas
                  smallrng.Clear
                  DoEvents
              Next smallrng
              DoEvents
              If (Embed = True) Then
                 DoEvents
                   .OLEFormat.Activate
                   .OLEFormat.Object.Charts("Chart1").Activate
                 DoEvents
              Else
                 DoEvents
                   .Chart.ChartData.Activate
                   .Chart.Refresh
                 DoEvents
              End If
              DoEvents
            End With
     
            If (Embed) Then
                oPPTApp.ActivePresentation.Slides(1).Select
            Else
               NWbk.Save: NWbk.Close
            End If
            Set NWbk = Nothing: Set NWS = Nothing
            oGraph.Application.Update
        End If
        If (UCase(Mid(Obj_Name, 1, 5)) = "TABLE") Or (UCase(Mid(Obj_Name, 1, 5)) = "GROUP") Then
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            Set otable = oShape.Table
            smallrng.Clear
            RowNo = 1: ColNo = 0: Ctr = 0
            For Each smallrng In ActiveSheet.Range(PPTRnge).Areas
              With smallrng
                smallrng.Select
                For Each cell In Intersect(Selection, smallrng)
                    cell.Select
                    Ctr = Ctr + 1
                    DCellRow(Ctr) = cell.Row
                    DCellCol(Ctr) = cell.Column
                    otable.cell(DCellRow(Ctr), DCellCol(Ctr)).Shape.TextFrame.TextRange.Delete
                Next cell
              End With
            Next smallrng
        End If
        If (UCase(Mid(Obj_Name, 1, 9)) = "RECTANGLE") Or (UCase(Mid(Obj_Name, 1, 17)) = "ROUNDED RECTANGLE") Then
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            oShape.TextFrame.TextRange.Delete
        End If
        If (UCase(Mid(Obj_Name, 1, 8)) = "TEXT BOX") Then            ''Note here Text Box is with a  space!
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            oShape.TextFrame.TextRange.Delete
        End If
        If (UCase(Mid(Obj_Name, 1, 7)) = "TEXTBOX") Or (UCase(Mid(Obj_Name, 1, 5)) = "TITLE") Then
            Set oShape = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No)
            oShape.TextFrame.TextRange.Delete
        End If
        If (UCase(Mid(Obj_Name, 1, 19)) = "CONTENT PLACEHOLDER") Or (UCase(Mid(Obj_Name, 1, 5)) = "CHART") Then
           Embed = False
     
           If (oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).HasChart) Then
              oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.ChartData.Activate
              Set NWbk = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.ChartData.Workbook
              NWbk.Application.WindowState = xlMinimized
              Set NWS = NWbk.Worksheets(1)
              NWbk.Activate: NWS.Activate
           End If
     
           If (oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).HasChart = msoFalse) Then
              Embed = True
              If (oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Type = msoEmbeddedOLEObject) Then
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Activate
                 Set NWS = oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Object.Worksheets("Sheet1")
              End If
           End If
     
           smallrng.Clear
           For Each smallrng In NWS.Range(PPTRnge).Areas
               smallrng.Clear
           Next smallrng
           DoEvents
           If (Embed = True) Then
               DoEvents
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Activate
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).OLEFormat.Object.Charts("Chart1").Activate
               DoEvents
           Else
               DoEvents
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.ChartData.Activate
                 oPPTApp.ActivePresentation.Slides(Slide_No).Shapes(Obj_No).Chart.Refresh
               DoEvents
           End If
           DoEvents
     
           If (Embed) Then
               oPPTApp.ActivePresentation.Slides(1).Select
           Else
              NWbk.Save: NWbk.Close
           End If
     
           Set NWbk = Nothing: Set NWS = Nothing
        End If
      Next i
     
      Set oShape = Nothing:   Set oGraph = Nothing: Set otable = Nothing
      Set oPPTApp = Nothing:  Set oShape = Nothing
     
    '  PPT_Pres.Save
      Set PPT_Pres = Nothing:
     
      totSlides = 0: sp = 0
      For i = 1 To max
        found = False
        For j = 1 To sp
           If (UsedSlides(j) = Slides(i)) Then found = True: Exit For
        Next j
        If Not (found) Then totSlides = totSlides + 1: sp = sp + 1: UsedSlides(sp) = Slides(i)
      Next i
     
      Application.ScreenUpdating = True
      If (totSlides <= 1) Then
        MsgBox ("Done - Cleared Values for " & Str(totSlides) & " Slide!")
      ElseIf (totSlides > 1) Then
        MsgBox ("Done - Cleared Values for " & Str(totSlides) & " Slides!")
      End If
    End Sub
    Function GetIndex(AnyCol As String) As Integer
      Dim i, ColNo As Integer
      ColNo = 0
      For i = 1 To Len(AnyCol)
          ColNo = ColNo * 26 + PickCol(Mid(AnyCol, i, 1))
      Next i
      GetIndex = ColNo
    End Function
    Function PickCol(Col As String) As Integer
      Dim i As Integer
      Dim Col_Names As Variant
      Col_Names = Array("", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")
     
      For i = 1 To 26
          If (Col_Names(i) = Col) Then Exit For
      Next i
      PickCol = i
    End Function
    Function GetCol(Col As Integer) As String
      Dim k As Integer
      Dim ColName As String
     
      If (Col Mod 26 = 0) Then
         k = Int(Col / 26) - 1
         ColName = "Z"
      Else
         k = Int(Col / 26)
         ColName = Chr(64 + Col Mod 26)
      End If
      If (k > 0) Then ColName = Chr(64 + k) & ColName
      GetCol = ColName
     
    End Function
    Private Function FileOrDirExists(PathName As String) As Boolean
        Dim iTemp As Integer
     
        On Error Resume Next
        iTemp = GetAttr(PathName)
     
        Select Case Err.Number
        Case Is = 0
            FileOrDirExists = True
        Case Else
            FileOrDirExists = False
        End Select
     
        On Error GoTo 0
    End Function
    Private Sub btnGetObjectDetails_Click()
     Dim i As Long, j As Long, r1 As Long, LastRow As Long
     Dim Lower As Long, Upper As Long
     Dim Slides(999, 3) As Long, SlideNo As Long
     
    'Store the existing Ranges in Details Sheet
     With Sheets("Details")
        LastRow = .UsedRange.Rows.Count + .UsedRange.Row - 1
        MaxDetailCol = .UsedRange.Columns.Count + .UsedRange.Column - 1
        If (MaxDetailCol > 20) Then MaxDetailCol = 20
        r1 = 0
        For i = 2 To LastRow
            If (Trim(.Range("E" & i).Value) <> "") And (Trim(.Range("F" & i).Value) <> "") Then
               r1 = r1 + 1
               For j = 1 To MaxDetailCol
                   CurrentDetails(r1, j) = .Cells(i, j)
               Next j
            End If
        Next i
     End With
     CurrentMax = r1
     
     Call Get_PPT_Details(1)
     
    'Compare the new objects and place the existing values back to them
     With Sheets("Details")
        LastRow = .UsedRange.Rows.Count + .UsedRange.Row - 1
        SlideNo = 0: r1 = 0
        For i = 2 To LastRow
            If (Trim(.Range("A" & i).Value) <> "") Then
               If (.Range("A" & i).Value <> SlideNo) Then
                  SlideNo = Int(.Range("A" & i).Value)
                  r1 = r1 + 1
                  Slides(r1, 1) = SlideNo
                  Lower = 0: Upper = 0
                  For k = 1 To CurrentMax
                      If (Int(CurrentDetails(k, 1)) = SlideNo) Then
                           If (Lower = 0) Then Lower = k
                      End If
                      If (Lower > 0) And (Upper = 0) Then
                         If (k < CurrentMax) And (Int(CurrentDetails(k, 1)) <> SlideNo) Then Upper = k - 1
                         If (k = CurrentMax) Then Upper = k
                         If (Upper > 0) Then Exit For
                      End If
                  Next k
                  Slides(r1, 2) = Lower: Slides(r1, 3) = Upper
               End If
            End If
        Next i
        CurrentMax = r1
     
        SlideNo = 0
        For i = 2 To LastRow
            If (Trim(.Range("A" & i).Value) <> "") Then
               If (.Range("A" & i).Value <> SlideNo) Then
                  SlideNo = .Range("A" & i).Value
                  Lower = 0: Upper = 0
                  For j = 1 To CurrentMax
                      If (Slides(j, 1) = SlideNo) Then Lower = Slides(j, 2): Upper = Slides(j, 3)
                  Next j
               End If
               If (Lower > 0) And (Upper > 0) Then
                  For k = Lower To Upper
                      If (.Range("C" & i).Value = CurrentDetails(k, 3)) And (.Range("D" & i).Value = CurrentDetails(k, 4)) Then
                          For j = 3 To MaxDetailCol
                              .Cells(i, j) = CurrentDetails(k, j)
                          Next j
                      End If
                  Next k
               End If
            End If
        Next i
     End With
     
     MsgBox ("Done!")
    End Sub
    Private Sub btnLocateObjects_Click()
      Call Get_PPT_Details(2)
    End Sub
    Private Sub Get_PPT_Details(mode As Integer)
      Dim Wbk As Workbook, WS As Worksheet
      Dim sl As Slide
      Dim Shp As PowerPoint.Shape
      Dim present As Presentation, Present_Path As String, Pres_found As Boolean
     
      Dim i As Long, j As Long, r1 As Long
     
      ExcelFile = "": PPTFile = "": Ext = "": Error = False
      With Sheets("Files")
         PPTFile = .Range("B2").Value
         If (PPTFile = "") Then
           MsgBox ("PowerPoint File is not properly specified in the Details Page!")
           Exit Sub
         End If
         If (UCase(Right(PPTFile, 4)) <> ".PPT") And (UCase(Right(PPTFile, 5)) <> ".PPTX") Then
            MsgBox ("File specified in Files Sheet is not a PPT File!"): Exit Sub
         End If
         If FileOrDirExists(PPTFile) Then
            If (UCase(Right(PPTFile, 5)) = ".PPTX") Then
               Ext = ".pptx"
            Else
               Ext = ".ppt"
            End If
         Else
            MsgBox PPTFile & " not found!": Exit Sub
         End If
      End With
     
      Application.ScreenUpdating = False
      Set Wbk = ThisWorkbook
      Set WS = Wbk.Sheets("Details")
     
    '' Open Powerpoint
      oPPTApp.Visible = msoTrue
      If (oPPTApp.Presentations.Count = 0) Then
          Set PPT_Pres = oPPTApp.Presentations.Open(PPTFile)
      Else
         Pres_found = False
         For Each present In oPPTApp.Presentations
             Present_Path = Trim(present.Path & "\" & present.Name)
             If (UCase(Present_Path) = UCase(Trim(PPTFile))) Then Pres_found = True: Exit For
         Next present
         If (Pres_found) Then
             Set PPT_Pres = oPPTApp.Presentations(PPTFile)
         Else
             Set PPT_Pres = oPPTApp.Presentations.Open(PPTFile)
         End If
      End If
     
      If (mode = 1) Then
         Wbk.Activate: WS.Activate
         With Wbk.Sheets("Details")
            .Rows("2:2").Select
            .Range(Selection, Selection.End(xlDown)).Select
            Selection.Delete Shift:=xlUp
            .Range("A1").Select
         End With
     
         r1 = 1
     
         For i = 1 To PPT_Pres.Slides.Count
             Set sl = PPT_Pres.Slides(i)
             sl.Select
             For j = 1 To sl.Shapes.Count
                 r1 = r1 + 1
     
                 Set Shp = sl.Shapes.Item(j)
                 With WS
                   .Cells(r1, 1) = i
                   .Cells(r1, 2) = j
                   .Cells(r1, 3) = Shp.Name
                   .Cells(r1, 4) = Shp.ID
                 End With
             Next j
         Next i
         Wbk.Activate: WS.Activate
         With WS
            .Range("A2:D65536").Font.Name = "Calibri"
            .Range("A2:D65536").Font.Size = 11
            .Range("A1").Select
         End With
      End If
      If (mode = 2) Then
        abc = InputBox("Enter slide number")
     
        If Val(abc) > 0 Then
          Set sl = PPT_Pres.Slides(Val(abc))
          sl.Select: sl.Application.ActiveWindow.Activate
          For i = 1 To sl.Shapes.Count
             Set Shp = sl.Shapes.Item(i)
             Shp.Select
             sl.Shapes.Item(i).Select
             MsgBox (Str(i) & " of " & Str(sl.Shapes.Count) & " is [ " & Shp.Name & " ] ID = " & Shp.ID)
          Next i
        End If
      End If
     
      Windows(Wbk.Name).Activate: Wbk.Worksheets("Update").Select
     
      Set sl = Nothing: Set Shp = Nothing: Set PPT_Pres = Nothing
      Set Wbk = Nothing: Set WS = Nothing
      Application.ScreenUpdating = True
     
      If (mode = 2) And (Val(abc) > 0) Then MsgBox ("Done!")
    End Sub
    'Private Sub cmdActivate_Click()
    '   Form1.Show (1)
    End Sub

  2. #2
    Expert éminent Avatar de jfontaine
    Homme Profil pro
    Contrôleur de Gestion
    Inscrit en
    Juin 2006
    Messages
    4 754
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Contrôleur de Gestion

    Informations forums :
    Inscription : Juin 2006
    Messages : 4 754
    Points : 9 396
    Points
    9 396
    Par défaut
    Bonjour,

    Personnellement je ne tiens pas à me taper les 1349 lignes de code pour trouver ton problème.
    Donnes nous uniquement les informations importantes pour t'aider (bout de code avec la ligne qui pose problème)

  3. #3
    Nouveau Candidat au Club
    Homme Profil pro
    Lycéen
    Inscrit en
    Mars 2012
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Lycéen
    Secteur : Finance

    Informations forums :
    Inscription : Mars 2012
    Messages : 3
    Points : 1
    Points
    1
    Par défaut
    c une macro que j ai achetée mais la elle ne fonctionne plus,je vous attache la macro.pswd macro: fouzi


    Désolé, c la ligne 691 qui me pose problème,merci pour ton aide
    Fichiers attachés Fichiers attachés

  4. #4
    Expert éminent Avatar de jfontaine
    Homme Profil pro
    Contrôleur de Gestion
    Inscrit en
    Juin 2006
    Messages
    4 754
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Contrôleur de Gestion

    Informations forums :
    Inscription : Juin 2006
    Messages : 4 754
    Points : 9 396
    Points
    9 396
    Par défaut
    Il va être difficile de comprendre ce qui ne va pas puisque la macro fait appel a des objets hors excel.
    Si elle ne fonctionne plu sil faut trouver ce qui à changer sur ton PC (peut être un changement de PC ou de version d'office?)

  5. #5
    Nouveau Candidat au Club
    Homme Profil pro
    Lycéen
    Inscrit en
    Mars 2012
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Lycéen
    Secteur : Finance

    Informations forums :
    Inscription : Mars 2012
    Messages : 3
    Points : 1
    Points
    1
    Par défaut
    merci pour ton aide,est ce qu il n ya pas moyen de automatiser des résultats sur excel vers PowerPoint.

  6. #6
    Expert éminent Avatar de jfontaine
    Homme Profil pro
    Contrôleur de Gestion
    Inscrit en
    Juin 2006
    Messages
    4 754
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Sarthe (Pays de la Loire)

    Informations professionnelles :
    Activité : Contrôleur de Gestion

    Informations forums :
    Inscription : Juin 2006
    Messages : 4 754
    Points : 9 396
    Points
    9 396
    Par défaut
    on peut faire beaucoup de chose avec VBA
    La question est : "est ce que l'on sait faire?

Discussions similaires

  1. [AC-2010] Erreur de compilation membre de méthode ou de données introuvable
    Par mcharmat dans le forum VBA Access
    Réponses: 3
    Dernier message: 12/05/2016, 00h32
  2. Réponses: 2
    Dernier message: 01/10/2010, 16h01
  3. Erreur de compilation: Membre de méthode ou de données introuvable
    Par toniodelavega dans le forum Macros et VBA Excel
    Réponses: 2
    Dernier message: 27/08/2010, 08h03
  4. Membre de méthodes ou de données introuvable
    Par titeZ dans le forum Macros et VBA Excel
    Réponses: 3
    Dernier message: 22/08/2007, 18h06
  5. Membre de méthode ou de donnée introuvable
    Par samtheh dans le forum VBA Access
    Réponses: 2
    Dernier message: 09/07/2007, 09h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo