Hi everyone,
I have code (snippet below) which creates a excell sheet from an access recordset.
After the process it shows the sheet and a prompt to save changes
How can one prevent this happening.
With objSht
.Range(.Cells(1, 1), .Cells(conMAX_ROWS, _
intLastCol)).ClearContents
.Range(.Cells(1, 1), _
.Cells(1, rs.Fields.count)).Font.Bold = True
.Range("A1").CopyFromRecordset rs
End With
Thanks for helping
Piet
I have code (snippet below) which creates a excell sheet from an access recordset.
After the process it shows the sheet and a prompt to save changes
How can one prevent this happening.
With objSht
.Range(.Cells(1, 1), .Cells(conMAX_ROWS, _
intLastCol)).ClearContents
.Range(.Cells(1, 1), _
.Cells(1, rs.Fields.count)).Font.Bold = True
.Range("A1").CopyFromRecordset rs
End With
Thanks for helping
Piet