{"id":2836,"date":"2021-10-29T08:20:00","date_gmt":"2021-10-29T08:20:00","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=2836"},"modified":"2021-10-29T08:20:38","modified_gmt":"2021-10-29T08:20:38","slug":"delete-rows-between-two-lines-using-a-macro","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/office\/delete-rows-between-two-lines-using-a-macro\/17779.html","title":{"rendered":"Delete Rows Between Two Lines Using A Macro"},"content":{"rendered":"<p>I am trying to format a report that was originally saved in .txt format. I&#8217;m having to perform this duty quite frequently so I&#8217;ve been trying to create a macro to assist but am having difficulty.<\/p>\n<p>These reports can be from 3 to 1,500 pages long. Where I&#8217;m having the most difficulty is trying to find a way to delete all rows between the rows that begin with &#8220;END OF CSA&#8221; and &#8220;RUN DATE&#8221; throughout the entire report. The number of rows that need to be deleted could vary for every instance where these two sets of data are found. Is there a way to accomplish this?<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":4},"question-category":[53],"question_tags":[],"class_list":["post-2836","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\/2836","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=2836"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=2836"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=2836"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=2836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}