P
PeteCresswell
In Excel VBA, seems like all I have to do is select a row and invoke
..HPageBreaks.Add.
viz:
-----------------------------------------------------------
Rows("36:36").Select
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
-----------------------------------------------------------
But from MS Access VBA, .HPageBreaks seems tb read-only.
e.g.
-----------------------------------------------------------
3300 With theSS.Worksheets(theWorkSheetName)
3301 .Rows(myLastTargetRow + 1).Select
3302 .HPageBreaks.Add before:=.ActiveCell
3309 End With
-----------------------------------------------------------
traps out with "Line 003302 0438: Object doesn't support this property
or method"
And when I invoke View | Object Browser | Excel | WorkSheet |
HPageBreaks, it describes it as "read-only".
My first suspicion is that I'm doing something goofy with my object
reference - like looking in the wrong place in the model or at the
wrong model.
Can anybody shed some light?
..HPageBreaks.Add.
viz:
-----------------------------------------------------------
Rows("36:36").Select
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
-----------------------------------------------------------
But from MS Access VBA, .HPageBreaks seems tb read-only.
e.g.
-----------------------------------------------------------
3300 With theSS.Worksheets(theWorkSheetName)
3301 .Rows(myLastTargetRow + 1).Select
3302 .HPageBreaks.Add before:=.ActiveCell
3309 End With
-----------------------------------------------------------
traps out with "Line 003302 0438: Object doesn't support this property
or method"
And when I invoke View | Object Browser | Excel | WorkSheet |
HPageBreaks, it describes it as "read-only".
My first suspicion is that I'm doing something goofy with my object
reference - like looking in the wrong place in the model or at the
wrong model.
Can anybody shed some light?