Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Can you explain how your code answers this old question? Commented Oct 1, 2015 at 19:14
  • 2
    While this answer is probably correct and useful, it is preferred if you include some explanation along with it to explain how it helps to solve the problem. This becomes especially useful in the future, if there is a change (possibly unrelated) that causes it to stop working and users need to understand how it once worked. Commented Oct 2, 2015 at 21:48
  • This won't work if the last row is hidden or if the largest row is greater than 65536 (old excel limit). Commented Apr 5 at 16:27