Guest User

Untitled

a guest
Jul 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. with worksheets("sheet1")
  2. on error resume next
  3. set rng = .range("B6:H6").specialcells(xlcelltypeformulas, xlerrors)
  4. if not rng is nothing then
  5. rng.formular1c1 = "=average(r5c, r7c)"
  6. end if
  7. set rng = .range("B10:H11").specialcells(xlcelltypeformulas, xlerrors)
  8. if not rng is nothing then
  9. rng.formular1c1 = "=average(r9c, r12c)"
  10. end if
  11. end with
Add Comment
Please, Sign In to add comment