将指定单元格的内容设置为页眉页脚
- Public Sub ButtunClick(sender As Object,e As SpreadsheetGear.Windows.Co**ols.ShapeActionEventArgs)
- If e.Shape.Name = "Button 1" Then
-
- With ActiveWorkbook.ActiveWorksheet.PageSetup
- .LeftHeader = ""
- .CenterHeader = ""
- .RightHeader = Range("A1").Text
- .LeftFooter = "&B 快表软件 &B"
- .CenterFooter = "&D"
- .RightFooter = " 第 &P 页"
- End With
-
- MessageBox.Show("页眉页脚设置完成", "提示", MessageBoxButton.OK)
-
- End If
- End Sub'按钮/标签点击事件
复制代码
|
|
hessen