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

  FORUM HardWare.fr
  Programmation

  [Lotuscript] comment qu'on fait pour enregistrer ds un fichier Excel ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Lotuscript] comment qu'on fait pour enregistrer ds un fichier Excel ?

n°70258
dirakocha
Posté le 07-11-2001 à 12:31:52  profilanswer
 

Yep, en fait je voudrais mettre dans un fichier Excel certaines données provenant de document Notes. Je sais que c faisable mais je ne sais po comment le réaliser et pourtant j'en ai regardé des scripts mais aucun ne se rapproche de ce que je recherche. So si qlq1 à une suggestion... :)
 
@+
 
PS: M@nou si t là :D


---------------
Q.G Tutoriaux ici
mood
Publicité
Posté le 07-11-2001 à 12:31:52  profilanswer
 

n°70364
dirakocha
Posté le 07-11-2001 à 16:02:36  profilanswer
 

No idea ?? :(


---------------
Q.G Tutoriaux ici
n°70403
pirl@uit
ex-bzh-setiseur | farmer fou
Posté le 07-11-2001 à 17:21:20  profilanswer
 

dirakocha a écrit a écrit :

No idea ?? :(  




Essaye sur www.notes.net (tu fais une recherche dasn le forum y a pas mal d'exemples)
 
sinon un petit exemple
 
 Dim OLEapplication As Variant
 Dim OLEbook As Variant
 Dim OLEsheet As Variant
 
 On Error Goto Oops
 
 Set OLEapplication = Nothing
 Set OLEbook = Nothing
 Set OLEsheet = Nothing
 
    'creation d'un doc XL
    '     xlsheet=1
 Set OLEapplication = CreateObject("Excel.Application" )
 Set OLEbook = OLEapplication .Workbooks.Add
 Set OLEsheet = OLEbook.WorkSheets(1)
 pathXL$=OLEapplication.path
 
 i&=1
 Set doc=view.getfirstdocument
 ligXL%=1
 colXL%=1
 While Not doc Is Nothing
  OLEsheet.cells(ligXL%,colXL%).value = doc.Subject(0)
  ligXL%=ligXL%+1
  Set doc=col.getnextdocument(doc)
 Wend
 
 path$="c:\"
 file$="ExportXL.xls"
 pathfile$=path$+file$
 Call OLEbook.SaveAs(pathfile$,True)
 Msgbox "File save on " + pathfile$
 
'Et ne pas oublier de fermer à la fin
 Call OLEapplication.Quit
 
'vide le contenu des objets OLE
 Set OLEapplication = Nothing
 Set OLEbook = Nothing
 Set OLEsheet = Nothing
 
'running Xl
 apprun$ = pathXL$ + "\" + "Excel.exe" + " " + Chr(34) + pathfile$ + Chr(34)
 taskid% = Shell(apprun$ ,3)

n°70411
dirakocha
Posté le 07-11-2001 à 17:50:34  profilanswer
 

-->> Pirl@uit <<--
 
Merci c trop top cool je vais faire un tour sur le forum mais je pense que ton script est déjà pas mal pour ce que j'ai à faire.
 
Thx  :jap:  :jap:  :jap:  :jap:


---------------
Q.G Tutoriaux ici

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [Lotuscript] comment qu'on fait pour enregistrer ds un fichier Excel ?

 

Sujets relatifs
chargement de fichier provenant de blender[VBA & Excel] Est-il possible de...
[excel] on peut programmer le démarage ???Fichier BAT
Edition d'un fichier protégé[PHP] Telecharger un fichier en Php
[VB6] Générer un fichier[C] Fichier ini
Décompiler un fichier vb6 ?Fichier Bitmap et programmation en C...
Plus de sujets relatifs à : [Lotuscript] comment qu'on fait pour enregistrer ds un fichier Excel ?


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