AndrewKent
Well-known Member
- Joined
- Jul 26, 2006
- Messages
- 889
Hi there,
I have automated some simple reports within Access to save them in Excel format:
Is anyone able to help me update this so that when data is exported, the Excel document is password protected.
Kind regards,
Andy
I have automated some simple reports within Access to save them in Excel format:
Code:
Function Extract_MissingCCNumbers()
' =============================================================================================
' Procedure written by: Andrew Kent
' =============================================================================================
DoCmd.OutputTo acOutputQuery, "qryExternalExtract_MissingCC_Edinburgh", _
acFormatXLS, strReportsPath & "Missing Cost Centre Numbers (Edinburgh - " & strCurrentDate & ").xls"
DoCmd.OutputTo acOutputQuery, "qryExternalExtract_MissingCC_Glasgow", _
acFormatXLS, strReportsPath & "Missing Cost Centre Numbers (Glasgow - " & strCurrentDate & ").xls"
DoCmd.OutputTo acOutputQuery, "qryExternalExtract_MissingCC_Newcastle", _
acFormatXLS, strReportsPath & "Missing Cost Centre Numbers (Newcastle - " & strCurrentDate & ").xls"
End Function
Is anyone able to help me update this so that when data is exported, the Excel document is password protected.
Kind regards,
Andy