Announcement

Collapse
No announcement yet.

What is the syntax for adding and End of Page marker in Excel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What is the syntax for adding and End of Page marker in Excel

    Searching for the rigth syntax:

    SET vRange="A45"

    OBJECT CALL oExcelWorkSheet.HPagebreak.Add.vRange
    or
    OBJECT CALL oExcelWorkSheet.HPagebreak.Add(vRange)
    or
    OBJECT CALL oExcelWorkSheet.HPagebreak.Add.Range(vRange) is not the syntax.

    ​​​​​​​Who can help me?

    #2
    Hi Joost, this will add a pagebreak at row 15 in the worksheet.

    Code:
    DIM xlRow AS VARIANT, xlPagebrake AS VARIANT
    
    LET xlRow = 15
    LET xlPagebrake = %XlPageBreak.xlPageBreakManual
    
    OBJECT LET oExcelWorkSheet.Rows(xlRow).PageBreak = xlPagebrake
    Here some more information about adding pagebreaks: https://docs.microsoft.com/en-us/off...ange.pagebreak

    Regards, Mikael

    Comment


      #3
      Thanks Mikael

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎