I
I.M. Shatner
I have an OutputTo macro that creates an xls file from a report. The xls file
needs additional formatting to be usable. I would like to find a way to have
that formatting macro execute immediately upon Autorun. Here's the excel
code I'd like to fit in, or append to my Access macro if possible.
Thanks!
Private Sub Workbook_Open()
'
Cells.Select
With Selection.Font
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
Selection.Rows.AutoFit
Columns("A:A").Select
Selection.Font.Bold = True
Range("A4").Select
End Sub
needs additional formatting to be usable. I would like to find a way to have
that formatting macro execute immediately upon Autorun. Here's the excel
code I'd like to fit in, or append to my Access macro if possible.
Thanks!
Private Sub Workbook_Open()
'
Cells.Select
With Selection.Font
.Size = 9
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 1
End With
Selection.Rows.AutoFit
Columns("A:A").Select
Selection.Font.Bold = True
Range("A4").Select
End Sub