๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #134

Problema con procedura Vb6 e Xls

#134
From: jeorge
Date: Mon, 03 May 2010 07:55
32 lines
2503 bytes
Buongiorno a tutti, e grazie anticipatamente per le risposte
( speriamo che arriveranno )... :-) sto sviluppando un programmino
che
dovrebbe tra le altre cose, creare un file xls con i risultati della
ricerca effettuata. La prima volta che lancio il programma tutto
funziona perfettamente, creo il mio file ecc... Il problema, nasce se
rifaccio l'export la seconda volta ( non riavviando il programma ).
questo, mi fa pensare ad un problema di applicazioni " lasciate in
sospeso " ma non riesco ad uscirne... posto parte del codice :
Dichiarazione :
Dim MyXL  As excel.Application
    Dim ExcelWasNotRunning As Boolean
    On Error Resume Next
    Set MyXL = GetObject(, "Excel.Application")
    DetectExcel
    If file_appoggio = 1 Then
    Else
      Set MyXL = CreateObject("excel.application")   'p
      file_appoggio = 1
    End If
   Set MyXL = MyXL.Workbooks
   carica_excel     '<---------------------------------------
MyXL.Quit
-----------------------------------------
Caricamento xls:
   Cells.Select
    Selection.ClearContents
Qui mi genera l'errore ( su Cells.select ). questo รจ l'errore che mi
da : Metod "Cells" of object "_Global" failed. err 1004.
Spero di essere stato chiaro.
NON SO PIU COSA FARE.AIUTATEMI PER FAVORE!!!!!!
Grazie mille
Technical Details
Message-ID: <7187f71e-56ba-437f-b9df-90d910bb8b22@q32g2000yqb.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!q32g2000yqb.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 3de4ef2fba,f925db81576c3afd,start
X-Google-Attributes: gid3de4ef2fba,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!q32g2000yqb.googlegroups.com!not-for-mail
From: jeorge <e.palombo@email.it>
Newsgroups: free.it.visual-basic
Subject: Problema con procedura Vb6 e Xls
Date: Mon, 3 May 2010 00:55:37 -0700 (PDT)
Organization: http://groups.google.com
Lines: 32
Message-ID: <7187f71e-56ba-437f-b9df-90d910bb8b22@q32g2000yqb.googlegroups.com>
NNTP-Posting-Host: 62.94.198.3
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1272873337 9307 127.0.0.1 (3 May 2010 07:55:37 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 3 May 2010 07:55:37 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q32g2000yqb.googlegroups.com; posting-host=62.94.198.3; 
 posting-account=Hvg9jQoAAAA6WaueJPODmSuQB8M1DhUM
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) 
 AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064
 Safari/532.5,gzip(gfe)