Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1608 connectés 

  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  Object required [ca marche sur les ptits, pas sur les grands !]

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Object required [ca marche sur les ptits, pas sur les grands !]

n°1085682
kinokoShan
Posté le 16-05-2005 à 16:31:29  profilanswer
 

:hello:  
Hello, c'est encore moi !  
J'ai un problème au sujet d'une erreur qui intervient uniquement quand mon fichier est grand. object required.
 
Voila la boucle, je dois trouver, pour chaque cell de la feuille Actual Add, l'onglet du fichier de ref correspondant. Et ca donne :
 :whistle:  je vous passe les détails...
 
' L'erreur est en rouge ^____^
'********************************************************************'***************
'                           Zip Code Main Cure
 
' Geomaps Main File Opening
' Unmatching Item Workbook / Worksheet initialization
' Corresponding Geomaps Thumbnail Finding (City Level)
 
'                         Calling Find_ZipCode
 
' ***********************************************************************************
 
 
Public Sub Zio_Analyse()
 
Dim Tmpsh As Worksheet                  ' Temporary sheet
Dim cel As Range                        ' Cell loop index
 
Dim path As String                      ' Path of Geomap File
Dim nGeo As String                      ' Name of Geomap File
 
 
' The (m)Total Count with Actual Add / Actual Del sheets
Set CWbk = ActiveWorkbook
Set Upset = Application.Workbooks.add
Upset.Sheets(1).name = "Unlisted country"
Upset.Sheets(2).name = "No city match"
Upset.Sheets(3).name = "No IBM Service Level match"
 
' Upset.SaveAs ("Unknown and exceptions from " & CWbk.name)
 
' Opening Geomap file
path = InputBox("Path of the Geomap file : " )
nGeo = InputBox("Name of the Geomap file : " )
 
 
Set GWbk = Application.Workbooks.Open("" & path & "\" & nGeo)
 
' Checking the country regarded
' Test
 
If IsError(CWbk.Sheets("Actual Add of Cisco" )) Then
    MsgBox "No Actual Add sheet"
    Exit Sub
End If
 
' Emmanuelle's code integration
 
Call CisToIFile_rmx(CWbk)
 
' For each cell of Actual Add sheet Country column
 
For Each cel In Range(CWbk.Sheets("Actual Add of Cisco" ).Range("K2" ), CWbk.Sheets("Actual Add of Cisco" ).Range("K2" ).Cells.SpecialCells(xlCellTypeLastCell).Offset(1, 0))
         
        For Each Tmpsh In GWbk.Sheets
         
          ' If the country is listed in Geomap_TOTAL_MATCH
            If Not cel Is Nothing Then
                 
            If Tmpsh.name = cel.value Then                
                    cel.EntireRow.Interior.Color = vbCyan
                    Call Find_ZipCode(Tmpsh, cel)
                 
                Else
                     
                    cel.Interior.Color = vbRed
                     
                End If
             
            End If
         
        Next Tmpsh
 
Next cel
 
 
' General cleaning
 
Set Tmpsh = Nothing
Set cel = Nothing
 
End Sub
 :hello:  :non:  


---------------
Pourquoi rien faire quand on peut se gratter le dos ?
mood
Publicité
Posté le 16-05-2005 à 16:31:29  profilanswer
 

n°1314845
kinokoShan
Posté le 27-02-2006 à 21:48:06  profilanswer
 

c'est bon j'ai trouvé toute seule ^^


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  VB/VBA/VBS

  Object required [ca marche sur les ptits, pas sur les grands !]

 

Sujets relatifs
CSS XHTML balise object dans MozillaAnt: comment ça marche??
comment marche les combobox[php dynamique]$$var ou $res[$var] ... ca marche pas[resolu mouai]
[activeX] récupérer les attributs height/width de <object> ?C++ / Qt : prog marche sous linux et quand il veut sous windows!
texte defilant marche pas sur MAC ... (script simple)1autre solution ?tableau 100% sa marche mais euuuuh lire pour comprendre le prob ...
MYSQL MARCHE PAS[Flash/ActionScript] Setinterval + transition = marche pas?
Plus de sujets relatifs à : Object required [ca marche sur les ptits, pas sur les grands !]


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR