ExcelTip.Net留存知识帖 ---【注:附件之前被网盘供应商清空后,现已修复-现已修复-现已修复为本地下载!】
现在位置:首页 > 我的酷贴 > Excel VBA > 自定义页眉/页脚格式代码及含义

自定义页眉/页脚格式代码及含义

作者:绿色风 分类: 时间:2022-08-18 浏览:71
楼主
omnw
自定义页眉/页脚格式代码及含义,大家可以在编写VBA程序时使用。

Format codeDescription
&LLeft aligns the characters that follow.左对齐后面的字符
&CCenters the characters that follow.居中对齐后面的字符
&RRight aligns the characters that follow.右对齐后面的字符
&ETurns double-underline printing on or off.打开或关闭打印双下划线
&XTurns superscript printing on or off.打开或关闭打印上标
&YTurns subscript printing on or off.打开或关闭打印下标
&BTurns bold printing on or off.打开或关闭字体粗体
&ITurns italic printing on or off.打开或关闭字体斜体
&UTurns underline printing on or off.打开或关闭打印单下划线
&STurns strikethrough printing on or off.打开或关闭打印删除线
&G 显示图像
&DPrints the current date.打印当前日期。
&TPrints the current time.打印当前时间。
&FPrints the name of the document.打印文档的名称。
&APrints the name of the workbook tab.打印工作簿选项卡的名称。
&PPrints the page number.打印页码。
&P+numberPrints the page number plus the specified number.打印加上指定数目的页码。
&P-numberPrints the page number minus the specified number.打印减去指定数目的页码。
&&Prints a single ampersand.打印一个单一的符号。
& "fontname"Prints the characters that follow in the specified font. Be sure to include the double quotation marks.按照指定的字体打印字符。一定要包括双引号。
&nnPrints the characters that follow in the specified font size. Use a two-digit number to specify a size in points.按照指定的字体大小打印字符。使用两位数字来指定一个字体的大小。
&NPrints the total number of pages in the document.打印文档中的总页数。

免责声明

有感于原ExcelTip.Net留存知识的价值及部分知识具有的时间限定性因素, 经与ExcelTip.Net站长Apolloh商议并征得其同意, 现将原属ExcelTip.Net的知识帖采集资料于本站点进行展示, 供有需要的人士查询使用,也慰缅曾经的论坛时代。 所示各个帖子的原作者如对版权有异议, 可与本人沟通提出,或于本站点留言,我们会尽快处理。 在此,感谢ExcelTip.Net站长Apolloh的支持,感谢本站点所有人**绿色风(QQ:79664738)**的支持与奉献,特此鸣谢!
------本人网名**KevinChengCW(QQ:1210618015)**原ExcelTip.Net总版主之一

评论列表
sitemap