将excel文件另存为prn格式文件可用两种方法 方法一:直接复制粘贴法将要保存的excel区域选中,带格式文本文件(空格分隔),1.另存为 选择 其它格式 选择保存类型为 文本文件(制表符分隔) 方法二:用vba实现这个功能 sub gvntw() dim sh as worksheet dim mypath as string mypath = thisworkbook.path & "" for each sh in thisworkbook.worksheets sh.copy with activeworkbook .saveas filename:=mypath & sh.name & ".prn", fileformat:=xltextprinter .close true end with next end sub