Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autofill a formula in Excel
Message
From
21/12/1999 13:25:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00306668
Message ID:
00306819
Views:
32
>I need to copy a formula in excel using the autofill method.
>I have tried the below and variations but with no joy.
>Has anyone done this before?
>
>ox.RANGE(ox.cells(440,4),ox.cells(440,4)).Select
>WITH ox.selection
> .Range.Autofill(.range(ox.cells(440.4),ox.cells(440,52)), 0)
>ENDWITH
>
>Thanks in Advance
>MArtin


ox is Excel or sheet ?
ox = createobject("Excel.Application")
....
with ox.ActiveWorkBook.ActiveSheet
 .Range(.cells(440,4),.cells(440,52)).Value = 0
* or xlA1 notation
* .Range("D440:AB440").Value = 0 && AB is imaginary - not col 52:)
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform