![]() |
|
#5
|
|||
|
|||
|
Makes sense. I did add the title in the 'Alt Text' area for each table. Using the code from your original post, second example, how/where would I enter the table name (alt text)? Thanks again!
Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey, Microsoft Word Help, Tips and Tutorials @ The Anchorage, 2/12/2018 Dim oTbl As Table Dim lngIndex As Long For Each oTbl In ActiveDocument.Tables For lngIndex = oTbl.Rows.Count To 1 Step -1 If Left(oTbl.Cell(lngIndex, 1).Range.Text, Len(oTbl.Cell(lngIndex, 1).Range.Text) - 2) = "$" Then oTbl.Rows(lngIndex).Delete End If Next Next lbl_Exit: Exit Sub End Sub Last edited by macropod; 04-14-2021 at 04:34 AM. Reason: Added code tags |
| Tags |
| vba |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macro to insert multiple photos into separate tables | Photoinserts | Word VBA | 0 | 11-12-2018 08:30 PM |
replacing multiple ranges in excel with tables in word from top to bottom
|
modiria50989 | Word VBA | 5 | 09-13-2017 04:01 PM |
Creating multiple tables VBA from Excel to Word
|
francesco | Word VBA | 1 | 01-07-2016 04:08 AM |
Copying Multiple tables from excel into a single word document
|
dineshtgs | Word Tables | 1 | 04-07-2011 01:27 AM |
working with excel tables in MS word
|
radman154 | Word Tables | 1 | 03-25-2011 12:04 AM |