Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel replace function
Message
De
16/02/2006 13:26:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Excel replace function
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01096827
Message ID:
01096827
Vues:
81
Hi All,

I need some help in VFP Excel automation. This is what I have done so far.

•Open excel workbook in VFP
•Formatted the active sheet the way I want

What I need to do now is ..
•Replace all “$null” with “0” in a excel sheet with in my VFP program.

I recorded macros in excel and came up with this.

Cells.Replace What:="$null", Replacement:="0", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

I just don’t know how to apply that within my VFP prg.

Please HELP !!!!

TIA

- Jeana -
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform