更新时间:2023-11-30 23:42:16
VBA代码对我不起作用,因此我找到了解决方法.由于我使用的是Excel模板来创建Excel工作表.我修改了Excel模板以打印网格线.
The VBA code did not work for me so I discovered a workaround. Since I was using an Excel template to create the Excel sheet. I modified the Excel template to print Gridlines.
要启用网格线进行打印,请执行以下操作:
To enable Gridlines to Print:
Excel>打印预览>页面设置>图纸>在打印下选中标记网格线.
Excel > Print Preview > Page Setup > Sheet > Check mark gridlines under Print.