Write On EXCEL Page 2

Post Reply
acwoo1
Posts: 173
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: 8770
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 7 times
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: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

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.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
Enrico Maria Giordano
Posts: 8770
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: Write On EXCEL Page 2

Post by Enrico Maria Giordano »

Right, that could be the problem.

EMG
acwoo1
Posts: 173
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