Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXCEL - addtextbox
Message
 
To
07/03/2008 03:18:02
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01299642
Message ID:
01299675
Views:
9
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform