Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-23-2021, 03:39 AM
laith93 laith93 is offline Placing numbers of cross-references of tables and figures inside parenthesis Windows 10 Placing numbers of cross-references of tables and figures inside parenthesis Office 2019
Competent Performer
Placing numbers of cross-references of tables and figures inside parenthesis
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default Placing numbers of cross-references of tables and figures inside parenthesis

Hi,
Before explaining my problem, I am an academic researcher and I always work with scientific papers or thesis.
Previously, I posted in the Microsoft community, but I didn't get my need.
I recently joined this forum and browsed it for a week and I concluded that everything is possible with VBA, but it requires experience, so I will depend on Mr. macropod, Guessed, gmayor, and Greg Maxey as experts and most posts are replied by them, hence forgive me and you should help me as you can.

My problem (I think it's a worldwide problem) is with table and figure cross-references when inserted in a sentence,
the minimum option available for tables and figures is "Only label and number" for example, "as shown in Table 3.1", see attached image.
I googled for a time on how to insert the only numbers for cross-references of tables and figures, but without benefits, and this is impossible. So we will work with "Only label and number" as minimum option.



So my need is a VBA code to put the number of cross-references inside the parenthesis () and convert the label (Table, Figure) to lowercase because it is not suitable when not come at the start of a sentence.

I can do my need manually, but firstly, it takes a lot of time, secondly, suppose if I delete a certain table or figure, then updating cross-references, it will restore the original format, so the VBA code will solve this issue.

From the attached files, you can download exercise files to apply on it ("For scientific paper" just contain cross-reference number, ex: as shown in Table 3, while "For thesis" the cross-references number contain chapter number additionally, ex: as shown in Table 1.3).

The following image describes what Word can do by default and what I want:
Cross-ref.png

Thank you
Attached Files
File Type: docx For scientific paper.docx (211.0 KB, 9 views)
File Type: docx For thesis.docx (218.4 KB, 9 views)
Reply With Quote
 

Tags
vba code, vba editor, word 19



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update Exhibits and related cross-references numbers automatically? Surendra Yadav Word 4 10-30-2018 03:02 PM
Placing numbers of cross-references of tables and figures inside parenthesis How to convert text that is enclosed inside parenthesis in a word document into numbered footnotes? BobT Word 5 07-27-2018 01:17 PM
How to cross reference figures or tables when option is not given timfoolery Word 4 06-12-2018 05:53 AM
Convert manual cross references in footnotes to other footnotes to automatic cross references ghumdinger Word VBA 7 11-20-2014 11:47 PM
accept only new page numbers and cross references in review mode guitargeorge Word 7 10-15-2013 03:32 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft