Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-02-2021, 01:41 PM
laith93 laith93 is offline Search for first occurrence of certain letter in beginning of a paragraph Windows 10 Search for first occurrence of certain letter in beginning of a paragraph Office 2019
Competent Performer
Search for first occurrence of certain letter in beginning of a paragraph
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Post Search for first occurrence of certain letter in beginning of a paragraph

Hi,
Look at this image
18.png
I have a list of references (bibliography) at the end of the document, which sorted alphabetically
I want to organize them in a professional way and put them in subgroups by inserting the corresponding letter before each group of references of a certain letter.
The above image is created manually

For example:


I want to search for the first occurrence of letter A in beginning of the first paragraph which starts with A letter, then insert letter A before this paragraph and apply the style "BibloChar" to it, which is present in the attachment file.
When A is finished jump to the B letter and do the same thing, and so and so, until finishing all characters.

I want the template of the code for letters A, B, and C, then I will complete the rest of the code.

Thanks a lot.
Attached Files
File Type: docx Sample.docx (18.9 KB, 7 views)
Reply With Quote
 

Tags
vba code, vba find and replace, word vba code



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search for first occurrence of certain letter in beginning of a paragraph Replace a character only if it is at the beginning of the paragraph. donpopo Word 2 11-11-2018 11:32 PM
Search for first occurrence of certain letter in beginning of a paragraph Space tab at the beginning of each paragraph in a chapter village Word 3 07-20-2018 01:48 AM
Search for first occurrence of certain letter in beginning of a paragraph Wildcards - Sequence of Numbers at the Beginning of Each Paragraph qubie Word 1 11-30-2017 02:03 PM
Search for first occurrence of certain letter in beginning of a paragraph search for consecutive words beginning with capital letter cheech1981 Word 7 11-24-2017 12:50 PM
Search for first occurrence of certain letter in beginning of a paragraph How to keep a word with capitalized first letter, but not at the beginning of a sentence? xiangwulu Word 4 10-31-2014 09:00 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:10 PM.


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