OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

link to a csv-file at a defined cellposition

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
klaus
General User
General User


Joined: 08 May 2006
Posts: 28
Location: germany

PostPosted: Sun Mar 11, 2007 12:49 pm    Post subject: link to a csv-file at a defined cellposition Reply with quote

hallo

with following code is it possible to get datas from a csv-file:

Code:
Sub LinkCSV

Dim LinkModus ' Linkmodus beim Import
Dim NoLink 'Variable für die Auflösung des Linkmodus'
Dim aktivesBlatt as Object


'--Variablen/Parameter für den Import
Dim strPfad as String 'Variable zur Übergabe des Dateipfades
Dim strQuelltabelle as String
Dim strImportFormat as String 'Variable für das Dateiformat
Dim strImportOptionen as String ' Variable für den Zeichensatz etc.
Dim strLinkInfo as String
      aktivesBlatt=thisComponent.CurrentController.getActiveSheet

         strPfad="K:\Finanzen\Konotauszüge\656496.csv"
         strQuelltabelle = ""
         strImportFormat = ""
         strImportOptionen = "44" 'ordnet den für Umlaute und Sonderzeichen richtigen Zeichensatz zu
         LinkModus = com.sun.star.sheet.SheetLinkMode.NORMAL
         aktivesBlatt.link(strPfad, strQuelltabelle, strImportFormat, strImportOptionen, LinkModus)
         LinkModus = com.sun.star.sheet.SheetLinkMode.NONE 'Link auflösen

End Sub


my problem is to put the data at the next empty cell of the activesheet. is this possible?

reards
klaus
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group