J
J. Trucking
Hello,
I was wondering if anyone knew how to export certain fields in an
Access Form to certain cells in an excel spreadsheet. I currently
have a form in Access where the user inputs a date range. A query
then runs and the resulting data is exported to excel using
TransferSpreadsheet. Everything works great. However, is there a way
to export the StartDate and EndDate values from my form to specific
cells within the spreadhseet?
I don't have an extensive background in VBA, but with some help (a lot
of help), my current code:
- Opens an Excel Template
- Saves the doc as .xls
- Then does a TransferSpreadsheet
I am just wondering at which point I should transfer the values of
StartDate and EndDate. My guess would be after the code saves the
file as .xls.
Thanks in advance for any help,
John
I was wondering if anyone knew how to export certain fields in an
Access Form to certain cells in an excel spreadsheet. I currently
have a form in Access where the user inputs a date range. A query
then runs and the resulting data is exported to excel using
TransferSpreadsheet. Everything works great. However, is there a way
to export the StartDate and EndDate values from my form to specific
cells within the spreadhseet?
I don't have an extensive background in VBA, but with some help (a lot
of help), my current code:
- Opens an Excel Template
- Saves the doc as .xls
- Then does a TransferSpreadsheet
I am just wondering at which point I should transfer the values of
StartDate and EndDate. My guess would be after the code saves the
file as .xls.
Thanks in advance for any help,
John