Advertisement

11.08.2007 at 10:52AM PST, ID: 22948261
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Can VBA determine if a shape has been deleted if Word has changes tracked?

Asked by PatternNut in Visual Basic Programming, Microsoft Word

Tags: , , ,

Hi Experts,

I have a VBA macro that cycles through InLineShapes in MS Word.  That works fine.  However, if Word has changes tracked, the macro breaks down.  The problem occurs if an inlineshape has been deleted.  For some reason, the macro still picks up the shape!  I only realised what was going on when I clcked on 'reject deletion'.  Is there any way to separate out real matches from ones that are no longer in the actual text?

The macro is below.  Thanks in advance for any advice.

  Dim shp As Shape
  Dim rng as range
  Dim lngCountFigure as Long


  For Each shp In doctesting.Shapes
        lngCountFigure = lngCountFigure + 1
        Set rng = doctesting.Shapes(intShapeNumber).Anchor
        arrTrackInlineShapes(lngCountFigure) = rng.Start
  Next shp

Cheers,

PatternNutStart Free Trial
 
 
[+][-]11.08.2007 at 11:34AM PST, ID: 20244308

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, Microsoft Word
Tags: vba, word, anchor, shape
Sign Up Now!
Solution Provided By: geneus
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628