Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email address in excel
Message
 
 
À
10/08/2007 11:27:37
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01247406
Message ID:
01247411
Vues:
21
>I am creating a spreadsheet with emails in column 'H'
>when I look at the sheet entries in column 'H' are looking normal
>one I double click the cell in 'H' the email address in it turns into a mailto: type of hyperlink.
>
>How can I create this effect in my program
>oExcel.????
>
>
>Thansk
>
>
>Peter

Check http://www.tek-tips.com/viewthread.cfm?qid=1319252

From someone's answer - not tested yet:
oXL = CREATEOBJECT("excel.application")
WITH oXL
  .Workbooks.Add()

  WITH .activesheet
    .range("B2").Hyperlinks.Add(.range("B2"), "http://www.tek-tips.com/index.cfm")
    .range("B2").Hyperlinks(1).TextToDisplay = "Tek-Tips Home"
    .range("B:B").EntireColumn.Autofit
  ENDWITH 
  
  .visible=.t.
ENDWITH
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform