Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  Dim endOfIntRegister As Integer
  2.     Dim endOfBank As Integer
  3.    
  4.     endOfBank = 149
  5.     endOfIntRegister = 71
  6.        
  7.     'Clear register colors
  8.    For i = 3 To endOfIntRegister
  9.         For j = 1 To 9
  10.             Cells(i, j).Interior.ColorIndex = xlNone
  11.             Cells(i, j).Font.Bold = False
  12.             Cells(i, j).Font.Color = Black
  13.         Next j
  14.     Next i
  15.    
  16.     'Clear reconciliation text (dep,desc,pay)
  17.    For i = 3 To endOfIntRegister
  18.         For j = 10 To 12
  19.             Cells(i, j).Value = Null
  20.         Next j
  21.     Next i
  22.    
  23.    
  24.     'Clear bank colors
  25.        For i = 3 To endOfBank
  26.         For j = 24 To 27
  27.             Cells(i, j).Interior.ColorIndex = xlNone
  28.             Cells(i, j).Font.Bold = False
  29.             Cells(i, j).Font.Color = Black
  30.         Next j
  31.     Next i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement