FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WD.. and OLE Automation / VB
WD.. and OLE Automation / VB
Débuté par Heinz Kübler, 15 déc. 2004 22:22 - 2 réponses
Connectez-vous…
Heinz Kübler
#1
Posté le 15 décembre 2004 - 22:22
Hi,
I get stuck with my OLE Code and i think its more a VB question than a WD one
In VB its :
Selection.Range.PasteSpecial DataType:=wdPasteText
The problem is how to give in WD the wdPasteText argument ?
wdPasteText is a VB constant but i cant find the corresponding value in the VB Help
any hints are welcome
Signaler
0
0
Claude H
#2
Posté le 15 décembre 2004 - 23:56
I don't know if it works but try.
Selection>>Range>>PasteSpecial("DataType")=wdPasteText
or take a look at this, some examples to give an idea of possible syntaxes
xl>>activesheet>>shapes("Graphique 1")>>top = 20
xlchart>>setsourcedata((xl>>worksheets("Feuil1")>>range("A1:F10)),1)
Signaler
0
0
René Sansom
#3
Posté le 16 décembre 2004 - 10:41
Have a look at the Microsoft Visual Basic Editor for Word: create a macro and you will see that the value of wdPasteText=2
Selection.Range.PasteSpecial DataType:=2
René
Hi,
I get stuck with my OLE Code and i think its more a VB question than a WD one
In VB its :
Selection.Range.PasteSpecial DataType:=wdPasteText
The problem is how to give in WD the wdPasteText argument ?
wdPasteText is a VB constant but i cant find the corresponding value in the VB Help
any hints are welcome
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte