Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Formating
Message
 
To
26/11/2003 04:59:01
Rahul Murarka
Sys-Con Engineering
Kolkata, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00853608
Message ID:
00853661
Views:
16
Rahul,

The common practice is to record a macro in Excel and then translate the macro VBA code to VFP.

Here is how you could merge cells:
#include msconstants.h
oExcel=getobject(,"Excel.Application")  &&get reference to already open file

oExcel.Activesheet.Range("a8:D10").Select
    With oExcel.Selection
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlJustify
        .WrapText = .t.
        .Orientation = 0
        .ShrinkToFit = .f.
        .MergeCells = .t.
    EndWith
oExcel=.null.
>Dear Sir/Madam
>
>I am trying to merge Cells of Excel Sheet through VFP5 Commands.
>
>Please give me the syntax to do so.
>
>If you can advise any Help file which has VFP5 syntax for MsOffice. Please
>suggest.
>
>Thanks in Advance
>
>Rahul
Previous
Reply
Map
View

Click here to load this message in the networking platform