I have a worksheet that has a number of cells that need to be cleared. When I use the F8 key on the keyboard to walk through the VBA code I noticed that it takes seconds to "Clear Contents" The cells I need to clear are not contiguious. Is there a more efficent and faster way to clear cells? Speed is very important in this code. The code is below.
Thanks in advance.![]()
Sheets("DATA ENTRY").Select Range("AA12:DV48").Select Selection.ClearContents Range("F12:Z12").Select Selection.ClearContents Range("F15:Z15").Select Selection.ClearContents Range("F19:Z20").Select Selection.ClearContents Range("F28:Z28").Select Selection.ClearContents Range("G41:Z42").Select Selection.ClearContents Range("G44:Z45").Select Selection.ClearContents Range("G47:Z48").Select Selection.ClearContents Range("G51:Z51").Select Selection.ClearContents Range("G56:Z56").Select Selection.ClearContents Range("G58:Z61").Select Selection.ClearContents Range("G64:Z68").Select Selection.ClearContents Range("F79:Z85").Select Selection.ClearContents Range("F89:Z92").Select Selection.ClearContents Range("F94:Z94").Select Selection.ClearContents Range("F96:Z96").Select Selection.ClearContents Range("G101:Z102").Select Selection.ClearContents Range("G104:Z109").Select Selection.ClearContents Range("G111:Z111").Select Selection.ClearContents Range("F138:Z138").Select Selection.ClearContents
Bookmarks