Thread: Text removal
View Single Post
 
Old 08-11-2023, 09:25 AM
ranjan ranjan is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: May 2021
Posts: 80
ranjan is on a distinguished road
Default

Hi,

The above code is fully operational; however, I would like to apply these macros to all tables in a document; can we update this code to apply to all tables in a document?
If feasible, modify the one above....

Your help is highly appreciated.

I had tried the below one.. but not working..

For Each tbl In ActiveDocument.Tables
For Each cell In tbl.Range.Cells
Set rng = cell.Range
rng.Start = rng.Start + InStr(1, rng.Text, "") - 1
rng.Delete
Next cell
Next tbl

Last edited by ranjan; 08-11-2023 at 11:21 AM. Reason: Added Code
Reply With Quote