How to remove whole column if Header is Blank in excel
Condition: Without Knowing Index of Column
Thank:
Shaik Muktharvalli
How to remove whole column if Header is Blank in excel
Condition: Without Knowing Index of Column
Thank:
Shaik Muktharvalli
=> 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!!
Thank You @pravallikapaluri
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.