Private Sub Command6_Click()
With CommonDialog3
.Filter = "Excel文件(*.csv)|*.csv "
.InitDir = "D:\"
.flags = cdlOFNOverwritePrompt
.ShowSave
If Len(CommonDialog3.filename) > 0 Then
Open CommonDialog3.filename For Output As 1
Print #1, Label8.Caption & Label9.Caption
Close
MsgBox "保存完毕"
End IfEnd With
End Sub
我现在要保存到CSV文件里,但是想把Label8.Caption和Label9.Caption分开保存,分别放在A和B两个里面
With CommonDialog3
.Filter = "Excel文件(*.csv)|*.csv "
.InitDir = "D:\"
.flags = cdlOFNOverwritePrompt
.ShowSave
If Len(CommonDialog3.filename) > 0 Then
Open CommonDialog3.filename For Output As 1
Print #1, Label8.Caption & Label9.Caption
Close
MsgBox "保存完毕"
End IfEnd With
End Sub
我现在要保存到CSV文件里,但是想把Label8.Caption和Label9.Caption分开保存,分别放在A和B两个里面
解决方案 »
- COM菜鸟求助:VB调用ATL COM的
- 请问:microsoft transaction server type library 的文件名称是什么?
- 实在不好意思,实在找不到答案,请教大家一个很简单的问题
- 救命!我的VB咋突然没有“添加类模块”了?!?!
- 怎么列表指定目录下的文件(急)
- 请问DataRepeater1控件怎么使用?谢谢
- ado recordset.updateBatch 只更新多表中的一个表
- 请问,怎么用API检测端口有没有打开?
- vb 问题
- 简单问题,关于SELECT CASE语言。
- 连续 Tab 字符 合并的问题,请指教!
- 如何在改变listview选中行时触发Click事件
if A=B then
...
else ...