FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Passing Parameters to Excel.
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Passing Parameters to Excel.
Posted: Wed May 06, 2020 11:14 PM

All,

I am puzzeled on how to use some of the methods in Excel, because the parameter passing is unusual.

Dim sheet As Worksheet
Set sheet = ActiveWorkbook.Sheets.Add(After:=ActiveWorkbook.Worksheets(ActiveWorkbook.Worksheets.Count))

Is there a way to make this work in Harbour / Fivewin?

Thanks,

Byron ...

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Passing Parameters to Excel.
Posted: Thu May 07, 2020 06:00 AM
byron.hopp wrote:Dim sheet As Worksheet
Set sheet = ActiveWorkbook.Sheets.Add(After:=ActiveWorkbook.Worksheets(ActiveWorkbook.Worksheets.Count))


Try
Code (fw): Select all Collapse
oSheet := oExcel:ActiveWorkbook:Sheets:Add( oExcel:ActiveWorkbook:Worksheets( oExcel:ActiveWorkbook:Worksheets:Count() ) )
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Passing Parameters to Excel.
Posted: Thu May 07, 2020 06:25 AM

Thank you, if that is "After" then how would you do before?

Thanks,

Byron Hopp

Matrix Computer Services

Continue the discussion