When I run this code it picks the preceding heading style and not the parent. Example: the step at the top of the page is 4. and the parent step is 6.2.1.A. Your code returns 6.2.1.a.3, not 6.2.1.A. I also appears to be a onetime use due to the bookmark. I may have a large procedure that requires many different continuation headers.
|