I am doing an automation where I have 5-10 rows in excel and up to 50 dates which is a mixture of filled and unfilled cells in the columns. I am trying to copy and paste the dates into a website.
So far what I am thinking is:
to somehow read one row at a time
try to remove the empty columns
then use a do while loop and loop until I insert each date into the website.
Is there a way to remove the empty columns? I couldn’t use the filter function since it mainly works on rows. Thank you so much in advance!
You can just use an If in your loop. If the current column value is not blank, enter the date…otherwise do nothing. Then it’ll just skip the blank values as it’s entering the dates.
Excel Application Scope
├── Read Range
├── For Each Row
│ └── For Each
│ ├── If
│ │ └── Filter DataTable
│ └── Remove Data Column (if cell is empty)
└── Write Range