I work with office interaction and I am having problems inserting page breaks in excel. My code works fine with horizontal page breaks, but I also need to set the page layout to vertical. My code is lower, can someone change it to make a vertical page break in the āIā column, this code does the correct horizontal page layout, but still 150 pages because the vertical page layout is not set correctly. Thanks in advance.
Dim r As Excel.Range = CType (xlWorkSheet.Cells (27, 1), Excel.Range)
r.PageBreak = 1
source share