Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel - Move Sheet
Message
From
02/01/2002 12:55:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/01/2002 12:41:39
Mario Felisbino
Construtora Andrade Gutierrez S/A
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00599813
Message ID:
00599824
Views:
12
>How move sheet using : Before and After
>
>Ex in VBA:
>
> Sheets("Sheet3").Select
> Sheets("Sheet3").Move Before:=Sheets(2)
>
> Sheets("Sheet1").Select
> Sheets("Sheet1").Move After:=Sheets(3)
>
>
>Thanks
>
>Mario

with oExcel.ActiveWorkbook
.Sheets('Sheet3').Move(.Sheets(2)) && Move Sheet3 before sheets(2)
endwith

As far as I remember there was a problem with 'after'. If I was wrong then syntax would be :

with oExcel.ActiveWorkbook
.Sheets('Sheet1').Move(,.Sheets(3)) && Move Sheet1 after sheets(3)
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