【发布时间】:2015-06-29 15:53:44
【问题描述】:
我遇到了终端问题,你们能告诉我如何解决吗?当我在 excel 中输入一个值然后执行 Alt+Enter 时,该单元格中的值会中断并移至下一行。我想把它做成单行。不知道该怎么做。
例如,现在我得到这样的输出:
EnvName=testing testing
testing testing`
但是生成的输出应该是这样的:
EnvName=testing testing testing testing
在下面提供我的代码
Sub export()
Dim i As Long
Value = Sheets(Itm).Cells(i, 4).Value
'If InStr(1, Sheets(Itm).Cells(i, 4).Value, " ") Then
' Value = """" & Sheets(Itm).Cells(i, 4).Value & """"
'End If
Close 1
End Sub
【问题讨论】: