How to exit a Header or Footer

Get help using and writing Nisus Writer Pro macros.
Post Reply
vwnisus
Posts: 58
Joined: 2016-04-24 00:13:31

How to exit a Header or Footer

Post by vwnisus »

I have a simple macro to insert a TOC, go to the Footer, add a page number some text and then the total number of pages:

Code: Select all

Tools:Table of Contents:Insert TOC

View:Go To Footer
Insert:Automatic Number:Page Number

Type Text " of "

Insert:Automatic Number:Pages in Document

File:Save
I cannot see a command in the menu to out of a footer or header.

There is a View:Go to Page… menu command which does take the cursor out of the footer, but it asks for a number, but I am not sure how to incorporate that into a macro.

Is what I wish to do possible in a macro?
User avatar
phspaelti
Posts: 1313
Joined: 2007-02-07 00:58:12
Location: Japan

Re: How to exit a Header or Footer

Post by phspaelti »

Well you will need to know where you want to go…

Code: Select all

Select Document Start
Would take you out of the header. You can also use Find, or the macro language commands to place you, but you need to know where you want to go.
You could save the location before you enter the header/footer and then return to that.

As always it might be useful to know what you are trying to achieve. Macro work flows are usually best structered differently than human work flows, which is why the early macro idea of "Follow Me" rarely worked well in practice.
philip
Post Reply