ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
Option Explicit
Private Sub Workbook_BeforeClose(Cancel As Boolean)
With Sheets("HONDA SHEET").Range("C1:F17").Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.599993896298105
.PatternTintAndShade = 0
End With
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.EnableEvents = False
Sheets("HONDA SHEET").Range("A2,A17").ClearContents
Application.EnableEvents = True
End Sub
Private Sub Workbook_Open()
Worksheets("HONDA SHEET").Activate
Range("A13").Select
ActiveWindow.ScrollRow = 13
With Worksheets("INV DETAILS")
On Error Resume Next
.Columns("A").SpecialCells(xlFormulas, xlErrors).EntireRow.Delete
On Error GoTo 0
End With
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.EnableEvents = False
Sheets("HONDA SHEET").Range("A2,A17").ClearContents
Sheets("Inv Details").Range("A" & Rows.Count).End(xlUp).Offset(4).Value = "#N/A"
Application.EnableEvents = True
End Sub
Private Sub Workbook_Open()
[COLOR=#ff0000] Worksheets("HONDA SHEET").Activate
Range("A13").Select
ActiveWindow.ScrollRow = 13[/COLOR]
With Worksheets("INV DETAILS")
On Error Resume Next
.Columns("A").SpecialCells(xlFormulas, xlErrors).EntireRow.Delete
On Error GoTo 0
End With
End Sub