A
andreas
Hello,
I got a long word document with a lot of sections.
Section 1: Title Page
Section 2: Acknowledgments
Section 3: Abstract
Section 4: Table of Contents
Section 5: Table of Figures
Section 6: List of Tables
Sections 7-13: Main document with built-in heading styles (level 1 to
level 4)
Section 14: Appendix
Part of a macro I wrote should show the user right at the beginning in
a msgbox or inputbox that:
-The section with the first heading level 1 (i.e. Chapter 1) is on
section x.
-The section with the last heading level 1 (i.e. Chapter 13) is on
section y.
Can this be achieved by using VBA commands?I tried things like
Selection.GoTo What:=wdGoToHeading etc. But I cannot tell Word to jump
to the first or the last of the heading 1 levels, can I?
Help is appreciated. Thank you in advance.
Regards,
Andreas
I got a long word document with a lot of sections.
Section 1: Title Page
Section 2: Acknowledgments
Section 3: Abstract
Section 4: Table of Contents
Section 5: Table of Figures
Section 6: List of Tables
Sections 7-13: Main document with built-in heading styles (level 1 to
level 4)
Section 14: Appendix
Part of a macro I wrote should show the user right at the beginning in
a msgbox or inputbox that:
-The section with the first heading level 1 (i.e. Chapter 1) is on
section x.
-The section with the last heading level 1 (i.e. Chapter 13) is on
section y.
Can this be achieved by using VBA commands?I tried things like
Selection.GoTo What:=wdGoToHeading etc. But I cannot tell Word to jump
to the first or the last of the heading 1 levels, can I?
Help is appreciated. Thank you in advance.
Regards,
Andreas