Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-09-2020, 03:13 AM
emblaw emblaw is offline Search and replace ends of sentences in tables Windows 10 Search and replace ends of sentences in tables Office 2016
Novice
Search and replace ends of sentences in tables
 
Join Date: Jun 2020
Posts: 9
emblaw is on a distinguished road
Default Thanks!

I'll try this out, thank you!

In the same document, I am also trying to make the column widths of all the tables (all of which contain 2 columns and 4 rows, with the first column being significantly narrower than the rest), but the following macro is giving me the error "Run-time error '5992': Cannot access individual columns in this collection because the table has mixed cell widths". Any ideas how I could fix this as well, since I've got you on the line!?

Macro:
Sub SetColumnWidths2()
Dim t As Table
For Each t In ActiveDocument.Tables
t.Columns(1).Width = CentimetersToPoints(3.75)
t.Columns(2).Width = CentimetersToPoints(12)
Next t
End Sub
Many thanks!
emblaw
Reply With Quote
 

Tags
search and replace, tables



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search and replace ends of sentences in tables Search and replace hernans Word VBA 5 07-02-2018 07:01 PM
Search and replace ends of sentences in tables how to highlight all "indexed" sentences using find and replace? smallxyz Word 2 02-06-2016 02:54 AM
Search and replace ends of sentences in tables VBA Table – Search All Tables - Find & Replace Text in Table Cell With Specific Background Color jc491 Word VBA 8 09-30-2015 06:10 AM
Find/Replace, Duplicating a word in a sentence to hundreds of sentences. DDDD Word 0 10-08-2013 10:48 AM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM

Other Forums: Access Forums

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