For Each: Specified cast is not valid. While using For Each

@muhamed_fasil


PFA

@zaid.ahmad ,
Seems like the data provided is correct, Is it possible to share that xaml alone?

@zaid.ahmad

Is Sheet_Name a variable of type list of string? and is the output from get workbook sheets?

cheers

Yes that is it

@zaid.ahmad

Is it possible to send the file…

Cheers

i don’t have access to share that file

@zaid.ahmad

Can you try removing for and recreating and alternately run in debug and then check if the sheetname is getting populated properly

cheers

I have check that all sheet name is getting properly And now its working properly

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