KAPOW

Would you like to react to this message? Create an account in a few clicks or log in to continue.
KAPOW

Welcome to the Kapow forum. Here you can get help, use your skills to help others and enjoy hanging out in the company of other Kapow Robot Developers.


2 posters

    Loop Excel and remove rows

    avatar
    andobe


    Posts : 14
    Points : 2102
    Join date : 2019-03-22

    Loop Excel and remove rows Empty Loop Excel and remove rows

    Post by andobe Thu Jul 11, 2019 5:08 pm

    Hello,

    I am looping in excel, and when a certain value is hit i need to remove that row and continue looping.

    Does anybody have a way of doing this?
    jking
    jking


    Posts : 103
    Points : 4053
    Join date : 2014-03-01
    Location : USA

    Loop Excel and remove rows Empty Re: Loop Excel and remove rows

    Post by jking Thu Jul 11, 2019 7:41 pm

    When you find a value that meets your criteria, Right Click the Row and select the Modify → Remove → Rows Step.  Note that your Excel variable must not be set as a Global Variable.  If your set your Excel Variable as a Global Variable you will get the "Error from the Remove Rows action.  This steep is not allows on a global variable that is iterated over" Message.

    There are other strategies you can use if your spreadsheet must be set to Global.

    Loop Excel and remove rows Remove10

      Current date/time is Fri Nov 15, 2024 2:10 pm