Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel replace function
Message
From
16/02/2006 13:26:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Excel replace function
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01096827
Message ID:
01096827
Views:
87
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 -
Next
Reply
Map
View

Click here to load this message in the networking platform