I have the following Debug.WriteLine:
Debug.WriteLine("Metadata Version: {0}", version); // update: version is a string
The output is:
2.0: Metadata Version: {0}
Why is the string formatted this way?
I didn't see anything in MSDN documentation that identifies reasoning behind this forma...
@M.Doerner you're right, it seems that Application.Run runs in the context of Application.ThisWorkbook (which is the ActiveVBProject), but if it can't determine Application.ThisWorkbook (as is the case when running from RD), then it falls back to the ActiveWorkbook.
I was able to disable events, activate the target workbook, re-enable events, call Application.Run, disable events, re-activate the original workbook, and finally re-enable events. What a pain.
> I fixed this problem (again) with #3086. Feel free to pull the latest Next and resolve the conflicts (just Resx files and the test's .csproj, so it should be easy) so we can merge this. Also, you'll need to fix your bug.