![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
If your H/M/L tables are always appearing in that order at the top of the document then your macros might work like this
Code:
Sub MoveIt_High() ILikeToMoveIt End Sub Sub MoveIt_Medium() ILikeToMoveIt 2 End Sub Sub MoveIt_Low() ILikeToMoveIt 3 End Sub Function ILikeToMoveIt(Optional iTbl As Integer = 1) Dim aRng As Range, aTbl As Table, aRow As Row Set aRng = Selection.Paragraphs(1).Range aRng.End = aRng.End - 1 Set aTbl = ActiveDocument.Tables(iTbl) Set aRow = aTbl.Rows.Add aRow.Cells(1).Range.FormattedText = aRng.FormattedText End Function
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ashalles135 | Word VBA | 5 | 09-26-2018 09:49 AM |
![]() |
ArieH | Word VBA | 20 | 09-10-2017 04:23 PM |
![]() |
celiolopes | Word VBA | 2 | 08-25-2016 04:03 PM |
![]() |
caboy | Word VBA | 2 | 04-01-2015 07:00 AM |
Insert table in document - automatically updates second table in summary? | Mechanic | Word | 2 | 08-01-2012 09:44 PM |