Hello All,
I've got a piece of code that works great, but I'm trying to turn it into a function where I can use it with multiple files.
What I'm doing here is parsing a JSON file into a worksheet. The JsonConverter example shows it looking through a defined list of "values":
For each file it's looking at, I'd like to see it iterate through the first row of its respective sheet. I've got the values of the header row of that sheet in an array (DirArray):
But I don't know how to iterate through that while it's going through the For Each statement that populates the sheet.
I'd like to be able to do something like this:
Thanks for any help. Seeing how to do this would be useful.
Full Sub for reference:
Bookmarks