Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Sub AplusBautomatic()
  2.  
  3. On Error GoTo errormsg
  4.  
  5. y = 1
  6. For x = 1 To 10
  7.  
  8. Cells(x, 3) = Cells(x, y) + Cells(x, y + 1)
  9. Next
  10.  
  11. GoTo ending
  12.  
  13. errormsg:
  14. MsgBox ("There was an error")
  15.  
  16. ending:
  17. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement