🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.vbasic
1 messages
1 total messages Started by Janusz Sun, 11 Apr 2010 19:03
VB.NET Excel - odczyt z zamknietego pliku
#104601
Author: Janusz
Date: Sun, 11 Apr 2010 19:03
16 lines
1387 bytes
  W excelu odczytuje komorke "B2" w zamknietym pliku
GetValue=Application.ExecuteExcel4Macro("'C:\Katalog[Plik.xls]Arkusz1'!R2C2")
i to mi dziala.



Teraz chcialbym to samo z poziomu vb.net:

Dim oXL As New Excel.Application
GetValue=oXL.ExecuteExcel4Macro("'C:\Katalog[Plik.xls]Arkusz1'!R2C2")

a to zwraca mi "-2146826259" (co oznacza chyba #NAME?)

Jaki argument podac w funkcji?

Janusz
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads