Solved

finding SectionBreakContinues

Posted on 2014-01-15
2
268 Views
Last Modified: 2014-01-15
Hi Experts,

I have doubt in finding Section Break(Continues), if i find "^b", it's showing all kind of Section Break, but i want to find only Section Break(Continues) only.

            if (RngFind.Find.Execute("^b"))
            {
                while (RngFind.Find.Found)
                {
                    RngFind.Select();
                    RngFind.Find.Execute("^b");
                }
            }

or
            object sectionBreak = Word.WdBreakType.wdSectionBreakContinuous;

            if (RngFind.Find.Execute(sectionBreak))
            {
                while (RngFind.Find.Found)
                {
                    RngFind.Select();
                    RngFind.Find.Execute(sectionBreak);
                }
            }

if i find Word.WdBreakType.wdSectionBreakContinuous, It's finding "digit 8"


Please help to solve this, thanks in advance.

Regards,
Saran
0
Comment
Question by:xedge88
2 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39781638
HI,

Maybe

With ActiveDocument
    For i = .Sections.Count To 2 Step -1
        With .Sections(i)
            If .PageSetup.SectionStart = wdSectionContinuous Then
              End If
        End With
    Next i
End With

Open in new window

Regards
0
 

Author Closing Comment

by:xedge88
ID: 39784454
hi Rgonzo1971,

Thanks for quick reply, now i achieved by this method, can't we find directly?

regards,
Saran
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now