Article View: pl.comp.lang.vbasic
Article #92225odczyt danych z arkusza excela
From: tomb
Date: Thu, 20 Oct 2005 10:05
Date: Thu, 20 Oct 2005 10:05
39 lines
1753 bytes
1753 bytes
Witam,
Czy ktos wie gdzie jest blad w kodzie?
Kompilator wypisuje :
"Compile error:
Can't assign to array"
'----------------------------------------------
Private Sub read_log_cmd_Click()
Dim p_kraj(63, 19) As String
Dim AppExcel As Object
Set AppExcel = GetObject("c:\mojlog13Apr05.xls")
AppExcel.Range("C6:U68").Select
Set p_kraj = AppExcel.Selection
For i = 0 To 18
For z = 0 To 62
Debug.Print p_kraj(z, i)
Next
Next
'--------------------terminate excel
AppExcel.Quit
Set AppExcel = Nothing
End Sub
'--------------------------------------------
Z gory dziekuje za odpowiedzi
Pzdr,
Tomek
Technical Details
Message-ID:
<1129802722.048515.297260@g43g2000cwa.googlegroups.com>Path:
mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: "tomb" <tomb.fish@gmail.com> Newsgroups: pl.comp.lang.vbasic Subject: odczyt danych z arkusza excela Date: 20 Oct 2005 03:05:22 -0700 Organization: http://groups.google.com Lines: 40 Message-ID: <1129802722.048515.297260@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 161.85.127.140 Mime-Version: 1.0 X-Trace: posting.google.com 1129802728 6467 127.0.0.1 (20 Oct 2005 10:05:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 20 Oct 2005 10:05:28 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=161.85.127.140; posting-account=Tuw8sg0AAADaGGW335NEUZaJ54hVx8yM Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit