Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Dim a as range, b as range, c as range, d as range, rngAll as range
  2.  
  3. '...set the ranges a-d
  4.  
  5. Set rngAll = Application.union(a, b, c, d) '<< limited to 30 ranges
  6.  
  7. '...but no limit with this incremental method
  8. Set rngAll = Application.union(a, b)
  9. Set rngAll = Application.union(rngAll, c)
  10. Set rngAll = Application.union(rngAll, d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement