Hi,
I need some help with copying Excel sheets from one workbook to another using VFP 6. What I want to do is create several data tabs. Then create several report tabs, and copy the appropriate data tabs into each report as appropriate. The code below just copies several sheets from one open workbook to another in VB. How do I write the equivalent in VFP?
Windows("PER_1204.xls").Activate
Sheets(Array("IIIB_MD_Southeast_Keith", "IIIB_MD_South_Keith", _
"IIIB_MD_West_Keith", "IIIB_PT_Midwest_Keith")).Select
Sheets("IIIB_PT_Midwest_East").Activate
Sheets(Array("IIIB_MD_Southeast_Keith", "IIIB_MD_South_Keith", _
"IIIB_MD_West_Keith", "IIIB_PT_Midwest_Keith")).Copy Before:=Workbooks( _
"ProvEff_1204_MD.xls").Sheets(2)
I need some help with copying Excel sheets from one workbook to another using VFP 6. What I want to do is create several data tabs. Then create several report tabs, and copy the appropriate data tabs into each report as appropriate. The code below just copies several sheets from one open workbook to another in VB. How do I write the equivalent in VFP?
Windows("PER_1204.xls").Activate
Sheets(Array("IIIB_MD_Southeast_Keith", "IIIB_MD_South_Keith", _
"IIIB_MD_West_Keith", "IIIB_PT_Midwest_Keith")).Select
Sheets("IIIB_PT_Midwest_East").Activate
Sheets(Array("IIIB_MD_Southeast_Keith", "IIIB_MD_South_Keith", _
"IIIB_MD_West_Keith", "IIIB_PT_Midwest_Keith")).Copy Before:=Workbooks( _
"ProvEff_1204_MD.xls").Sheets(2)