We have been able to make a separate function that now returns the appropriate header level. However, a new issue appeared. Word now crashes everytime the Macro is run on some large files.
I'll be attaching the two modules in here along with the test documents.
Macro Modules:
ExtractEdryl.zip
Test documents:
Test Documents.zip
Would you be able to help me in figuring out how to avoid these file crashes?
Thanks!