Write On EXCEL Page 2

Post Reply
acwoo1
Posts: 159
Joined: Tue Nov 10, 2009 10:56 am

Write On EXCEL Page 2

Post by acwoo1 »

Hi

cName = "socie"
oExcel:Sheets( cName ):Select()
oSheet:Cells( 1, 1 ):Value="ABC"

cName = "socif"
oExcel:Sheets( cName ):Select()
oSheet:Cells( 1, 1 ):Value="BCD"

Only page 1 is updated.
Page 2 is not updated.
how to update two pages.

Thanks

ACWoo
Using FWH + bcc582
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Write On EXCEL Page 2

Post by Enrico Maria Giordano »

It should work. Please show a little sample that can be compiled and run, with the Excel file included.

EMG
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: Write On EXCEL Page 2

Post by hua »

After you activate the other sheet did you reassign oSheet with the new active sheet?
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
acwoo1
Posts: 159
Joined: Tue Nov 10, 2009 10:56 am

Re: Write On EXCEL Page 2

Post by acwoo1 »

Thanks

It works.

Regards

AC Woo
Post Reply