libre2009
Messages postés9Date d'inscriptionmardi 28 avril 2009StatutMembreDernière intervention25 septembre 2009
-
2 mai 2009 à 02:17
libre2009
Messages postés9Date d'inscriptionmardi 28 avril 2009StatutMembreDernière intervention25 septembre 2009
-
2 mai 2009 à 16:31
salut les amis
j'ai un petit probleme:
j'i fait une application avec VB6 et dans une commande je vais transferer le contenu des mshflexgrid vers un fichier Excel.alors j'ai office 2007 et j'ai ajouté microsoft excel 12.0 Object library.
Si je vais installé mon application sur un Pc qui contient office 2003 est ce que sa sera la amme chose ou bien il yaura une erreur parceque la version de library n'est pas la meme que 2007??
merci pour me repondre c'est urgent mes amis
A voir également:
Microsoft excel 12.0 object library download
Microsoft excel 12.0 object library - Meilleures réponses
Microsoft excel 12.0 object library download vb6 - Meilleures réponses
pile_poil
Messages postés682Date d'inscriptionvendredi 6 avril 2007StatutMembreDernière intervention 4 août 20126 2 mai 2009 à 07:10
bonjour
il y aura bien une erreur
si tu veux que ton code fonctionne avec toutes les versions d'excel il ne faut pas faire référence à quelque librairie que ce soit et travailler en laison tardive.
cela implique pas mal de petites contraintes supplémentaires dans ton code ( entre autre remplacer tous les mots-clefs d'excel par leur valeur ) mais c'est la seule solution à ma connaissance.
[reglement.aspx ]si c'est la solution, penser : REPONSE ACCEPTEE
libre2009
Messages postés9Date d'inscriptionmardi 28 avril 2009StatutMembreDernière intervention25 septembre 2009 2 mai 2009 à 13:51
salut les amis
mon ami j'ai pas compris ce que tu viens de dire. si j'elimine la library elle ne sera pas fonctionnable et voila le code:
Dim xlObject As Excel.Application
Dim xlWB As Excel.Workbook
Set xlObject = New Excel.Application
'This Adds a new woorkbook, you could open the workbook from file also
Set xlWB = xlObject.Workbooks.Add
Clipboard.Clear 'Clear the Clipboard
With MSHFlexGrid1
'Select Full Contents (You could also select partial content)
.Col = 0 'From first column
.Row = 0 'From first Row (header)
.ColSel = .Cols - 1 'Select all columns
.RowSel = .Rows - 1 'Select all rows
Clipboard.SetText .Clip 'Send to Clipboard
End With
With xlObject.ActiveWorkbook.ActiveSheet
.Range("A1").Select 'Select Cell A1 (will paste from here, to different cells)
.Paste 'Paste clipboard contents
End With
Clipboard.Clear 'Clear the Clipboard
With MSHFlexGrid2
'Select Full Contents (You could also select partial content)
.Col = 0 'From first column
.Row = 0 'From first Row (header)
.ColSel = .Cols - 1 'Select all columns
.RowSel = .Rows - 1 'Select all rows
Clipboard.SetText .Clip 'Send to Clipboard
End With
With xlObject.ActiveWorkbook.ActiveSheet
.Range("F1").Select 'Select Cell A1 (will paste from here, to different cells)
.Paste 'Paste clipboard contents
End With
xlObject.Visible = True
Avec ce code je coche juste la library de excell 12.0 pour qu'elle fonctionne
pose t il un probleme si je l'install fans un autre pc qui a excell 2003(library excell11.0)???
libre2009
Messages postés9Date d'inscriptionmardi 28 avril 2009StatutMembreDernière intervention25 septembre 2009 2 mai 2009 à 16:31
salut les amis
j'ai desinstallé office 2007 et j'ai installé office 2003 et j'ai installé ùmon applicatoion et elle n'a pas marché car j'ai utilisé la library 12.0 pour excel
comment faire les amis??? j'ai besoin de vos aides c'est tres urgent
j'ai cherché la library 11.0 ais j'ai pas trouvé malgré que j'ai installé office 2003 je trouve uste library 12.0