dear experts,
during printing reports using exel worksheet in a VB project,i faced the following problems.
1. i generated 2 reports,one in sheet 1 and other in sheet two, but i'm not able to set seperate properties for sheet1
for first sheet-----
range("A1:A4".select
With selection.font
.font.size = 9
end with
for second sheet-----
Appexel.sheets("sheet2".range("A1:A4".select
shows error:"selection method or range is invalid"
so how do i set the properties?
2.after generating the .xls file,if i generate it once again without closing the last generated one(book1.xls),the next file generated gets written over the last book1 and makes a mix of both old and new files
3.Once i generate the report seperately using radio buttons for each report,if close the file,clicking the control button X,and try to generate one more file,the whole application gets hung
please help me with ur suggestions
thank you for ur time
rumman
during printing reports using exel worksheet in a VB project,i faced the following problems.
1. i generated 2 reports,one in sheet 1 and other in sheet two, but i'm not able to set seperate properties for sheet1
for first sheet-----
range("A1:A4".select
With selection.font
.font.size = 9
end with
for second sheet-----
Appexel.sheets("sheet2".range("A1:A4".select
shows error:"selection method or range is invalid"
so how do i set the properties?
2.after generating the .xls file,if i generate it once again without closing the last generated one(book1.xls),the next file generated gets written over the last book1 and makes a mix of both old and new files
3.Once i generate the report seperately using radio buttons for each report,if close the file,clicking the control button X,and try to generate one more file,the whole application gets hung
please help me with ur suggestions
thank you for ur time
rumman