![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
Hello!
I am attempting to use the code from this post by Macropod using Office 365. I think the VBA language must have changed a bit from when it was written, as I'm getting a couple of errors not previously solved by the thread https://www.msofficeforums.com/word-...nts-excel.html. I was able to use the code from a separate post to export just comments, but would really like to be able to get the tracked changes as well. The first error is 424 for Code:
Select Case wdRng.StoryType Code:
Select Case Rng.StoryType Code:
Case wdMainTextStory, wdTextFrameStory StrOut = StrOut & "Page: " & .Range.Characters.First.Information(wdActiveEndAdjustedPageNumber) & vbTab & .Author & vbTab & .Date & vbTab Code:
Select Case .Type |
#2
|
||||
|
||||
![]()
I've revised the code in the link to correct the Rng references (should be wdRng).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Oh okay, got it now.
![]() I tried it again, and got past that first error, but it's still getting stuck on (error 5852) Code:
Case wdMainTextStory, wdTextFrameStory StrOut = StrOut & "Page: " & .Range.Characters.First.Information(wdActiveEndAdjustedPageNumber) & vbTab & .Author & vbTab & .Date & vbTab Code:
'Get Revision Type & Scope Select Case .Type |
#4
|
||||
|
||||
![]()
I am unable to reproduce that error on the sample file I tested the code with.
Without actually seeing the problem document, it can be difficult for anyone to diagnose the issue. Can you attach a document to a post with some representative data (delete anything sensitive)? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Hi Macropod,
Apparently, a new day has wiped away the bug and I'm not getting the error anymore. I am not sure what I did different, if anything. Thanks for correcting the macro! This is extremely useful. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
alzasp | Word VBA | 10 | 06-14-2022 02:13 AM |
Merging certain Tracked Changes and Comments | The_Chefkoch | Word | 0 | 02-01-2017 07:22 AM |
Why nobody marks his thread as solved?! | Catalin.B | Excel | 0 | 08-24-2011 06:23 AM |
Mark a thread as solved | Matrix | Forum Support | 0 | 04-22-2009 04:48 PM |