Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将一个字符串附加到一个包含双引号的文本文件中。我该怎么做,因为 VBA 目前很困惑
字符串应该说什么/将文本文件附加到(加载“c:\test.lsp”)?
您可以将字符串内的引号加倍:
"""The Professional"" is a killer movie."
或使用Chr(34):
Chr(34)
Chr(34) & "The Professional" & Chr(34) & " is a killer movie."