FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Working with Excel
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Working with Excel
Posted: Wed Mar 17, 2010 08:22 PM
Gale FORd wrote:I learn a lot by recording macros and looking at the code.

1. Start recording macro
2. Do the steps in Excel that you want to perform.
3. Stop recording
4. Look at the code to see what Excel did to accomplish the task

This is the best way.
Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Working with Excel
Posted: Fri Mar 19, 2010 12:52 PM
I started with the Excel-Tool.

Macros are good, to find out a Syntax, but I don't want to start a macro every time
I'm looking for a Solution.

I still would like to have a Solution, the User can define a Macro, using a Multiline-get.
I don't know if it is possible, to run it after :
TOleAuto():New( "Excel.Application" )

What is included :
Editor for : oWin, oExcel, oWorkbook and oSheet.
Includes a Syntax-Field and a Memo-Field.

A Painter, to define Fonts, Colors and some more Settings.
Writing the Source, or start a Preview of a Excel-Sheet with the defined settings



Editor for oWin + Global-Informations, oExcel, oWorkbook and oSheet.



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Working with Excel
Posted: Sat Mar 20, 2010 09:56 PM

Your example screens look like the tool would be very helpful.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 11
Joined: Tue Apr 18, 2006 11:43 AM
Re: Working with Excel
Posted: Thu Oct 28, 2010 03:52 PM

Is it possible to have more than one sheet in the workbook?

Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: Working with Excel
Posted: Thu Oct 28, 2010 06:33 PM
You might also find this link useful ... it has a list of all the excel constants:

http://www.smarterdimensions.com/blog/?p=374


Another site I've used for help in the past:

http://www.excelforum.com/

or:

http://www.mrexcel.com/
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: Working with Excel
Posted: Thu Oct 28, 2010 06:36 PM
Yes you can have more than one sheet:

oExcel:Sheets(cSheet):Select()


Take a look here for a cheat sheet I made some time ago:

http://www.fivewin.info/html/tips___tricks_detail.php?id=46
Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 11
Joined: Tue Apr 18, 2006 11:43 AM
Re: Working with Excel
Posted: Tue Nov 02, 2010 12:40 PM

Very helpful links with good examples Jeff ... many thanks!

I ended up using the following statements ...

oExcel:Worksheets(n):Activate() // where n = 1, 2, 3 ... etc
oSheet := oExcel:Get("ActiveSheet")

oSheet:name is useful for verifying which "n" is being used.

Continue the discussion