![]() |
|
#1
|
|||
|
|||
![]()
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey Dim oTbl As Table Dim lngRow As Long Dim oCC As ContentControl Set oTbl = ActiveDocument.Tables(1) lngRow = CLng(InputBox("What row?")) For Each oCC In oTbl.Rows(lngRow).Range.ContentControls oCC.LockContentControl = False oCC.LockContents = False Next oTbl.Rows(lngRow).Delete oTbl.Range.Fields.Update 'I assume you have numbered the rows with a Seq Field. lbl_Exit: Exit Sub End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
User input box with IF statement | ChrisJ83 | Word VBA | 9 | 11-13-2015 06:20 PM |
Variable arrays from user input | SeattleITguy | Excel Programming | 1 | 01-29-2015 09:19 AM |
![]() |
andrew12345 | Excel Programming | 2 | 11-18-2014 08:18 AM |
![]() |
dsm1995gst | Word VBA | 1 | 09-03-2013 03:43 PM |
![]() |
brad1977 | Word | 3 | 11-20-2012 10:20 AM |