将文件导出到导出记事本 [英] Bat file to Export Notepad

查看:104
本文介绍了将文件导出到导出记事本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助将数据导出到记事本而不是excel。

Can anyone help to export the data into notepad instead of excel.

'创建Excel文档

设置objExcel = CreateObject(" Excel.Application")

objExcel.Visible = True

objExcel.Workbooks.Add



objExcel.Cells(IntRow,IntCol + 1).Value =" Machine Name"

objExcel.Cells(IntRow,IntCol + 2).Value =" Machine Type" ; $


'Create Excel Document
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbooks.Add

objExcel.Cells(IntRow, IntCol+1).Value = "Machine Name"
objExcel.Cells(IntRow, IntCol+2).Value = "Machine Type"

推荐答案

您无法像Excel一样自动化记事本。它不是COM服务器。只需写一个 文本文件。
You cannot automate Notepad like Excel. It is not a COM server. Simply write a text file.


这篇关于将文件导出到导出记事本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆