Solved

finding SectionBreakContinues

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

773 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