Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXCEL - addtextbox
Message
 
À
07/03/2008 03:18:02
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01299642
Message ID:
01299675
Vues:
10
>HI,
>
>I want to export data to EXCEL,
>
>put some value into a AddTextbox.
>
>I have try below code :
>
>EXCEL_FILE.Application.Shapes.AddTextbox(msoTextOrientationHorizontal, 97.5, 28.5, 96.75 , 17.25).Font.CHARACTERS.Text = "ABC COMPANY"
>
>EXCEL_FILE.Application.Shapes.AddTextbox(1, 97.5, 28.5, 96.75 , 17.25).Font.CHARACTERS.Text = "ABC COMPANY"
>
>
>But that is wrong, what is the correct code ??

Try this:
With oExcel.ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 97.5, 28.5, 96.75 , 17.25)
   .Select
endwith
With oExcel.Selection
          .text="ABC COMPANY"
          .font.Size=8
....
endwith
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform