Phil Hageman
New Member
- Joined
- May 6, 2014
- Messages
- 14
OS X Yosemite 10.10.5
Excel 2011 version 14.7.2 (170228) on MAC
Am running the below macros in module 4 as an end of month worksheet cleanup, and have been getting "Out of Memory" messages. How can this be fixed?
Sub ClearCheckbookEntries()
Range("V5:Y54,AB5:AE54").Select
Range("AB5").Activate
Selection.ClearContents
Selection.ClearComments
Range("U5").Select
End Sub
Sub ClearCheckBoxes()
ActiveSheet.CheckBoxes.Value = xlOff
Range("U5").Select
End Sub
Sub RestoreCheckbookBackgroundColor()
Range("U5:AF55").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.8
.PatternTintAndShade = 0
End With
Range("U5").Select
End Sub
Sub RestoreCheckbookBorders()
Range("U5:AF54").Select
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 44
End With
Range("U5").Select
End Sub
Excel 2011 version 14.7.2 (170228) on MAC
Am running the below macros in module 4 as an end of month worksheet cleanup, and have been getting "Out of Memory" messages. How can this be fixed?
Sub ClearCheckbookEntries()
Range("V5:Y54,AB5:AE54").Select
Range("AB5").Activate
Selection.ClearContents
Selection.ClearComments
Range("U5").Select
End Sub
Sub ClearCheckBoxes()
ActiveSheet.CheckBoxes.Value = xlOff
Range("U5").Select
End Sub
Sub RestoreCheckbookBackgroundColor()
Range("U5:AF55").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.8
.PatternTintAndShade = 0
End With
Range("U5").Select
End Sub
Sub RestoreCheckbookBorders()
Range("U5:AF54").Select
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = 44
End With
Range("U5").Select
End Sub