Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-05-2022, 01:43 PM
nmkhan3010 nmkhan3010 is offline Batch Table Deletions Based on a string. Windows 10 Batch Table Deletions Based on a string. Office 2016
Novice
Batch Table Deletions Based on a string.
 
Join Date: Feb 2020
Posts: 21
nmkhan3010 is on a distinguished road
Default

Thank You for Help and Support.

I am appreciating and grateful for your help.

Below code is working well but not fulfilling my actual purpose, here code is deleting the find match word tables only.

My Purpose:

If the find string is more than one time in a document, then take the first match string as a base to delete the all ABOVE tables. but the below code is deleting the only match string tables.

EX: AAA is a match string.

There are N no of tables in a document and AAA is found at table 6 and table 9, then the code has to take the first match string as a base to delete all the tables. i.e. Table 1 to tables 5 has to be deleted, because AAA is firstly matched at Table 6.

Suppose if I want to add a Chinese string as a find string shall it accept or not, previously I pasted as Unicode converter code at

.Text = ChrW(32467) & ChrW(31639) & ChrW(22791) & ChrW(20184) & ChrW(37329)

Native Text : 结算备付金

I worked on the Chinese documents and how to write a Chinese find word in VBA mode.
Is there any best way to find strings in Chinese native? Presently am using Unicode converter to find Chinese strings over the document.

Please highlight where I have to paste a Chinese string in this code.

Please review the code once…

Am thankful for your help and need…
Reply With Quote
 

Tags
batch deleting



Similar Threads
Thread Thread Starter Forum Replies Last Post
Table Deletions ranjan Word Tables 4 09-01-2021 02:58 PM
Batch Table Deletions Based on a string. Table deletions based on a string. nmkhan3010 Word Tables 3 05-03-2021 08:57 PM
Batch Table Deletions Based on a string. Batch applying a macro to remove Header and Footer using Batch Auto Addin Edszx Word VBA 2 05-27-2019 11:16 PM
VBA to provide text string with specific formating based on Drop down list (content control) MP1989 Word VBA 4 07-30-2018 02:40 AM
Batch change header text which is in a table marafubu Word VBA 1 05-16-2018 04:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:42 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