I am using Access to partially fill in a spreadsheet from an .XLT file. There are formulas in a few columns.
What can I do to prevent users from accidentally typing over the formulas of the spreadsheet?
Here is my code for reference.
TIA
DougP, MCP, A+
What can I do to prevent users from accidentally typing over the formulas of the spreadsheet?
Here is my code for reference.
Code:
Dim oApp As Object
Dim SheetName As String
Set oApp = CreateObject("Excel.Application")
'load document
oApp.Workbooks.Add ("C:\AirMonitoring\Personnel Air Sampling Log.xlt")
' save as new document
SheetName = "C:\AirMonitoring\Spreadsheets\PersonnelAirSamplingLog-" & Me.Project_Number & ".xls"
oApp.ActiveWorkbook.SaveAs SheetName
' make Excel visible
oApp.Visible = True
' fill in cells
oApp.Application.Cells(2, 2).Value = Me.Facility
…
TIA
DougP, MCP, A+