Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel comments
Message
 
À
14/03/2006 15:11:09
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Divers
Thread ID:
01104351
Message ID:
01104355
Vues:
50
This message has been marked as the solution to the initial question of the thread.
>According to url http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaxl11/html/xlproApplication1_HV05199218.asp
>if you want to add a comment to a cell in excel, you do
>With Worksheets(1).Range("e5").AddComment
> .Visible = .F.
> .Text = "reviewed on "+mdy(Date)
>EndWith
>
>When I try this, it will take the .Visible, but I get the error:
>OLE error 0x80020003: Member not found
>on the .text
>
>When I open a test .XLS file that has a comment, I can print it uding
>?Worksheets(1).Range("E5").Comment.Text
>but again I can not change it.
>
>How do I do this?

Text is method not property
With Worksheets(1).Range("e5").AddComment
    .Visible = .F.
    .Text("reviewed on "+mdy(Date()))
EndWith
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform