Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to move the range down in excel ?
Message
From
02/12/2008 07:55:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/12/2008 01:10:14
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:
01365010
Message ID:
01365068
Views:
17
>Hi,
>After I export the file to a excel file, I want to open a excel worksheet and move a range of
>row down 1 row, but it doesn't work.
>Please see my coding.
>
>Please advise.
>Derek
>
>
> oExcel = CREATEOBJECT([Excel.Application])
> oWorkbook = oExcel.Workbooks.open("C:\CLIENT.XLS")
> oExcel.Visible = .t.	
> oRange = oExcel.activesheet.Range("A1:M17")	
> oRange = oRange.offset(1,0)
>
You mean insert 1 row above all existing?
oExcel = CREATEOBJECT([Excel.Application])
oExcel.Workbooks.open("C:\CLIENT.XLS")
 oExcel.Visible = .t.	
 oExcel.Activeworkbook.ActiveSheet.UsedRange.Rows(1).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
Next
Reply
Map
View

Click here to load this message in the networking platform