boar24 / InsertCrossReferencesComfortably

VBA macro to comfortably insert cross references in MS Word
12 stars 1 forks source link

Error with Cross Reference in Citation Module with Style Separator #6

Closed frijheid closed 7 months ago

frijheid commented 8 months ago

Dear dev. I'm encountering an error when using the module to create cross-references in citations that have a style separator. The style separator is intended to prevent citations from being called in the table of figures. However, it seems to be causing issues. An error in production has been identified and is documented in the attached file. Would you be able to offer guidance on resolving this issue, if possible? Your assistance would be greatly appreciated. Thank you

Attached file: Style separator issue.docx

boar24 commented 8 months ago

Hi frijheid, thanks for providing a sample file for the issue. I have tried to reproduce the reported problem but in each of my trials, a reference to Figure 3 was correctly inserted and I did not see the Interner Fehler. Can you please try again. If you still encounter the issue, please let me know where exactly the cursor was positioned before the Interner Fehler occured (a screenshot like in the below example may be the simplest and best possibility). Best regards

Screenshot01

frijheid commented 8 months ago

I found the difference with your screenshot, this is related to the visibility of the mark format. If format mark is active then the module is normal. but when the mark format is not turned on then the Fehler Interner. I have attached a video for your reference below. Thanks

https://github.com/boar24/InsertCrossReferencesComfortably/assets/85784404/f56e27e1-9b69-4dcc-942a-ffd550d333d5

boar24 commented 8 months ago

Ah, if Hidden text is visible, then it works. If Hidden text is invisible, the Interner Fehler occurs. grafik

Please try the modified code from the zip-file. I think it will work for your case, but as it is not yet tested sufficiently, I do for now not publish it as a new version.

InsertCrossReference.zip

frijheid commented 8 months ago

Thank you for addressing the issue and for the efforts to improve it. Your dedication is appreciated. While the modified code resolves one issue, I've noticed an impact on the style-cycling feature. Nonetheless, I'm confident that with your expertise, a solution can be found to make the module even better. Your support is invaluable, and I look forward to a seamless integration of both fixes in the future ✨

boar24 commented 8 months ago

Welcome. Thankyou. After I had answered and attached the zip at 2024-02-16 23:18 GMT+1, I've noticed the impact on the style-cycling feature too. However, it should have been fixed with the 2nd version from 2024-02-17 00:17 GMT+1. Please make sure that you use this second version.

frijheid commented 8 months ago

hello dev, Thanks for the swift response! I didn't see the attachment you mentioned, but I appreciate the intention to solve this problem. Could you please let me know where I can find the second version from 2024-02-17 00:17 GMT+1 to address the style-cycling feature issue? Thanks

boar24 commented 8 months ago

Hi frijheid, the attachment is in my edited post. But nevermind, please try today's version from the repository. It should fix the issue you reported. Best regards

frijheid commented 7 months ago

Apologies for the delay, I've just had a chance to check. The latest version is working fine. Now I'm able to retrieve cross-references from image captions that have a separator style, and the cycling style for headings is functioning properly as well. Thank you for the development efforts. 🌟