{"id":6128,"date":"2021-11-18T07:08:05","date_gmt":"2021-11-18T07:08:05","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=6128"},"modified":"2021-11-18T07:10:17","modified_gmt":"2021-11-18T07:10:17","slug":"vba-sort-data-then-copy-over-the-new-sheet","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/office\/vba-sort-data-then-copy-over-the-new-sheet\/18079.html","title":{"rendered":"VBA Sort Data, Then Copy Over The New Sheet"},"content":{"rendered":"<p>So I have the simple spreadsheet named &#8220;Result&#8221;.<\/p>\n<pre>                      A            B\r\n1                  009584         Over\r\n2                  006583         Good\r\n3                  005842         Good\r\n4                  165823         Over\r\n\r\n<\/pre>\n<p>So I want to sort out the &#8220;good&#8221; status ref # and then copy it over to new sheet named &#8220;Sheet1&#8221;. What should be the appropriate way to do it? FYI, it is more than 250K rows, so it is why I am asking for VBA code. I know it I could use pivot table to sort and then copy &amp; paste to the new sheet. However, I would like to learn VBA code for it to automate thing. Thank you in advance.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":1},"question-category":[53],"question_tags":[],"class_list":["post-6128","question","type-question","status-publish","hentry","question-category-office"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/6128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=6128"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=6128"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=6128"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=6128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}