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.
我在将 url 插入我的 TextBox 时遇到问题。
这是我的代码:
Sub GetOpenFile() Dim fileStr As String fileStr = Application.GetOpenFilename() TextBox1.Text = fileStr End Sub
我想浏览一个文件,浏览后我希望该文件的名称出现在 TextBox 中。
我错过了指定一张纸。
Sub GetOpenFile() Dim fileStr As String fileStr = Application.GetOpenFilename() Worksheets("Sheet2").TextBox1.Value = fileStr End Sub