FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Move excel sheets
Posts: 128
Joined: Wed Oct 26, 2005 12:18 PM
Move excel sheets
Posted: Wed May 24, 2006 08:44 PM

Hi,

Anybody knows what's the traduction of this macro from VB to xH/FWH?

Sheets("Sheet1").Select 
Sheets("Sheet1").Move After:=Sheets(3)

Thanks a lot.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Move excel sheets
Posted: Wed May 24, 2006 08:59 PM
César E. Lozada wrote:Hi,

Anybody knows what's the traduction of this macro from VB to xH/FWH?


Sheets("Sheet1").Select
Sheets("Sheet1").Move After:=Sheets(3)


Thanks a lot.


Try

oExcel:Sheets( "Sheet1" ):Select()
oExcel:Sheets( "Sheet1" ):Move( , oExcel:Sheets( 3 ) )


EMG
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Move excel sheets
Posted: Thu May 25, 2006 10:34 PM

You should also be able to do this:

oSheet := oExcel:Sheets(“oSheet1”)
oExcel:Sheets( "oSheet2” ):Move( oSheet )

This example will move sheet2 infront of sheet1

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)

Continue the discussion