From C# to set and EXCEL page break?

N

newscorrespondent

I am trying to set a page break in EXCEL from a C# application.

Target.ActiveWindow.SelectedSheets.HPageBreaks.Add(??????);

is close to the code that should do it.

The ??? requires a "Before object".

How do I define such an object?

I also can't figure out how to set the font in header object. The EXCEL
macro facility unfortunately leaves that code out when I code a macro.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top