Mensaje
De
26/02/2010 07:35:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
a
25/02/2010 23:10:53
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Foro:
Visual FoxPro
Category:
Programación, sintáxis y comandos
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
ID de la conversación:
01451138
ID del mensaje:
01451196
Views:
40
>Hi,
>I want to insert 2 rows at the worksheet row 1.
>How to code ? I don't know how to use the offset, please advise.
>
>Thanks.
>Derek

I thought I gave you the solution yesterday (simply EntireRow instead of EntireColumn). ie:
oExcel = CreateObject('Excel.Application')
oExcel.Workbooks.Add()
oExcel.Visible = .t.

oExcel.ActiveWorkbook.ActiveSheet.Range('A1').Value = "This was on row 1"

oExcel.ActiveWorkbook.ActiveSheet.Range('1:1').EntireRow.Insert
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
Responder
Mapa
Ver