B
bhikku
Hello!
I have a form which uses the .copyfromrecordset method to populate a set of
rows in an Excel template from a query. Then the Excel template is saved as
a new .xls file.
Two issues:
1) After the Excel template is populated and saved as a new file, when you
subsequently open the new file the workbook is hidden. How do I make the
workbook visible after the data is inserted into the Excel file?
2) Within the rows I'm populating with the .copyfromrecordset method I need
one of the cells in each row to contain a simple formula. I tried faking
Excel and sending the string "=H9*I9" into one of the cells but that just
came over as text. Is there a way to programmatically apply a formula to a
cell in an Excel worksheet from Access? And, can it be done to a range of
cells?
I'll post code if needed.
b
I have a form which uses the .copyfromrecordset method to populate a set of
rows in an Excel template from a query. Then the Excel template is saved as
a new .xls file.
Two issues:
1) After the Excel template is populated and saved as a new file, when you
subsequently open the new file the workbook is hidden. How do I make the
workbook visible after the data is inserted into the Excel file?
2) Within the rows I'm populating with the .copyfromrecordset method I need
one of the cells in each row to contain a simple formula. I tried faking
Excel and sending the string "=H9*I9" into one of the cells but that just
came over as text. Is there a way to programmatically apply a formula to a
cell in an Excel worksheet from Access? And, can it be done to a range of
cells?
I'll post code if needed.
b