Debug.Print distdic(1813)
For Each Key In storedic.Keys
NewBook.Sheets("Store Bulletin List").Cells(x, 1).Value = Key
NewBook.Sheets("Store Bulletin List").Cells(x, 2).Value = distdic(Key)
Debug.Print distdic(Key)
x = x + 1
Next
The first debug produces a result but that second debug does not even if the Key is 1813
Why can't I use my distdic from inside the foreach loop?
distdicdefined in the code before the loop? And isn't the syntax something likedistdic.Items(key)?