How to remove whole column if Header is Blank in excel

How to remove whole column if Header is Blank in excel

Condition: Without Knowing Index of Column

Thank:
Shaik Muktharvalli

Hi @shaik.muktharvalli1

Check the thread,It might help you

Hope it helps!!

Hi @shaik.muktharvalli1

Please find the below thread.

Hope it helps!!

1 Like

Hi @shaik.muktharvalli1

=> Use read range with add headers uncheck and do not give any range.
=> Now use for loop with dt.Columns
=> Inside the loop use if condition with

String.IsNullOrEmpty(dt.Rows(0)(currentItem.ColumnName).ToString) OrElse dt.AsEnumerable.Where(function(x) Not String.IsNullOrEmpty(x(currentitem.ColumnName").ToString)).Count=0

=> On then side use delete column activity

Hope it helps!!

Hi @shaik.muktharvalli1

Thank You @pravallikapaluri

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.