![]() |
#23
|
|||
|
|||
![]()
Shelley,
Ah, yes. I see what you mean. Yes, changing the main procedure to something like this will work: Code:
Sub MainProcedure() Dim oRng As Range Application.ScreenUpdating = False 'Do things 'Do things 'Call the CompoundCR procedure for the main text and footnotes (if exists) For Each oRng In ActiveDocument.StoryRanges Select Case oRng.StoryType Case 1, 2: CompoundCRs oRng End Select Next oRng 'Do things or call other procedures Application.ScreenUpdating = True Selection.HomeKey Unit:=wdStory MsgBox "Complete" lbl_Exit: Exit Sub End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
teza2k06 | Excel | 8 | 02-11-2022 08:41 AM |
Converting a Select statement in Excel to an update statement | shabbaranks | Excel Programming | 5 | 10-31-2018 11:47 PM |
![]() |
cangelis | Excel | 2 | 04-08-2015 05:55 PM |
![]() |
Tony Singh | Excel | 6 | 03-04-2015 12:52 PM |
![]() |
cangelis | Excel | 4 | 01-03-2014 09:10 AM |