Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert rows in the worksheet ?
Message
From
26/02/2010 07:35:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/02/2010 23:10:53
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01451138
Message ID:
01451196
Views:
38
>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
Reply
Map
View

Click here to load this message in the networking platform