Compare to today date with and column date

It seems like there is no such column named under 12 in your excel
Is it so
Cheers @Abubakkar

1 Like

Thanks @Palaniyappan.
it’s working fine now. condition also working. now I can compare today’s date with excel column date. but I can’t delete further excel column name

1 Like

Is col_index variable is getting incremented
Cheers @Abubakkar

1 Like

No buddy. how can I increment col_index variable?


for your references

On what condition we are trying to delete the columns
@Abubakkar

1 Like


for your references

Thanks @Palaniyappan

May I know what kind of error this ?

1 Like

Fine
Either mention the column name or column index and if we mention both we will be getting this error
Cheers @Abubakkar

1 Like

with this condition @Palaniyappan
if today’s date (12) and excel column name date (12) is same then i should delete columns with today from end of the month till.

Then assign the value of col_index as Cint(dt.Columns(dt.Columns.Count).ColumnName). Assuming that the columnName has only number as header and if so define this in the variable panel as default value for col_index variable

And try to delete from the last column to till date in reverse order
So the condition be like this in while loop
Cint(dt.Columns(dt.Columns.Count).ColumnName) > Cint(Now.ToString(“dd”))

Cheers @Abubakkar

1 Like

Thanks for the response @Palaniyappan


is that correct ?

1 Like

Yah let’s try
Cheers @Abubakkar

1 Like

Getting error like this

1 Like

It should be like count -1
And same in the below condition as well

1 Like


no error buddy but output like this

1 Like

Hmm fine but we from where does this false statement comes from
Cheers @Abubakkar

1 Like

image
Here @Palaniyappan

So is it deleting the columns
@Abubakkar

1 Like