Solved

finding SectionBreakContinues

Posted on 2014-01-15
2
269 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 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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 is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

17 Experts available now in Live!

Get 1:1 Help Now