PaulBricker
Programmer
I wasn't sure exactly how to describe this problem in the subject line but it's fairly straight forward. I have an attendance database in MS Access. We take attendance daily and have always printed a report that goes to 'central office'. Now central office want this done electronically. I need to export the information in my database to a spreadsheet. I can do this with the TransferSpreadsheet Method in VBA. But my problem is with the formatting of the excel sheet. They want some information in the first 2 rows that stay the same for each attendance sheet. Basically the title and some info about the week. The first 2 rows look like this
"Attendance Sheet for ABC School"
Week Of: 8/24/09
The date is inserted using the formula Now()-Weekday(Now())+2 and the cell is formatted for the date only to get rid of the time value.
After that, I have a row of field names and after that there is usually about 10 rows of faculty/staff absent for the day.
The TransferSpreadsheet Method doesn't allow me to start my data in a specific cell so I can't have the first 2 rows in the spreadsheet set up this way. I'm looking for alternatives.
1. I know I can put &[Date] in a Header and get todays date, but can't find a way to put an expression in the Header. Is this possible?
2. Thought about merging the two sheets or displying the data from sheet1 on sheet2 (=Sheet1!A3) but I'm unsure if I can email a specific sheet from a workbook as an attachment.
Any suggestions are welcome. I very versed in VBA in Access so coding isn't an issue.
Thanks
Paul
"Attendance Sheet for ABC School"
Week Of: 8/24/09
The date is inserted using the formula Now()-Weekday(Now())+2 and the cell is formatted for the date only to get rid of the time value.
After that, I have a row of field names and after that there is usually about 10 rows of faculty/staff absent for the day.
The TransferSpreadsheet Method doesn't allow me to start my data in a specific cell so I can't have the first 2 rows in the spreadsheet set up this way. I'm looking for alternatives.
1. I know I can put &[Date] in a Header and get todays date, but can't find a way to put an expression in the Header. Is this possible?
2. Thought about merging the two sheets or displying the data from sheet1 on sheet2 (=Sheet1!A3) but I'm unsure if I can email a specific sheet from a workbook as an attachment.
Any suggestions are welcome. I very versed in VBA in Access so coding isn't an issue.
Thanks
Paul