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



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


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


Yes that is it


Is it possible to send the file…


i don’t have access to share that file


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


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.