boar24 / insertcrossreferencescomfortably Goto Github PK
View Code? Open in Web Editor NEWVBA macro to comfortably insert cross references in MS Word
VBA macro to comfortably insert cross references in MS Word
I would like to express my sincere gratitude to the developer for creating and sharing this groundbreaking VBA Word algorithm. However, I have encountered some errors while using it. Initially, the code appears to work smoothly for general tasks, but when dealing with structured documents, errors begin to emerge.
I've encountered some issues with InsertCrossReferencesComforttably. Specifically, errors occur when inserting cross-references from captions when there are multiple columns on a page, it affects the numbering. These issues significantly affect the tool's reliability in displaying the correct cross-reference names. in general, most journals have more than one column. Apart from the error number, if the crossref style changing when VBA is run again it also doesn't work in this case.
If it can be improved, this code will be very useful for preparing scientific papers and will automatically support the development of writing publications throughout the world.
I would greatly appreciate it if these issues could be addressed and corrected. Thank you!
Looks like an excellent Macro!
In the example file it runs smoothly.
However, copying to Normal I got error:
"User-defined type not defined" in module:
Function RegExReplace(Quelle As Variant, Expression As Variant, replacement As Variant) As String
Dim re As New RegExp
Any suggestions?
Thx. Peter
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
Hello,
Many thanks for your useful Macro ! It would have so many hours and painful point and click !
It seems that the RegEx object is not available on MacOS :( . I suppose there is no alternative that would be cross-platform, right ?
Many thanks, again !
Hi, I really like your macro it should be a MS standard to do it this way.
However, on some captions the macro scrolls trough the whole document and gives the Interner Fehler error.
This happens at captions created from image imported from Ppt to word. These captions are located in their own sort of text box.
is there a way to tweak/update the macro to accommodate for these kind of captions
Kind Regards,
QvS1
Dear developers,
Thank you for updating this useful VBA.
I have encountered an error, which is that the style cycling for images is not working. However, the style cycling for headings is functioning properly.
I have provided a video demonstrating the error in the attachment.
Please kindly address this issue. Once again, I appreciate your attention to this matter.
https://github.com/boar24/InsertCrossReferencesComfortably/assets/85784404/d8a79ead-7aab-4768-be81-674657e71386
Best regards.
It seems that if I format the caption text to be all caps (under the fonts menu), the macro breaks.
I tried added "TABLE" / "FIGURE" to the subtitleTypes but this changes the error from "Can't crossreference to this location" to "Internal Error"
Const subtitleTypes = "Figure|Fig.|Abbildung|Abb.|Table|Tab.|Tabelle|Equation|Eq.|Gleichung|TABLE|FIGURE"
See the attached document. Try to use the macro to reference the 2nd table
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.