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.
我有两个文件。在第一个中,我编写了一个宏,将第二个文件作为输入并打开它以读取其数据。问题是每次我启动宏时都会打开第二个文件,我不希望这样。我认为问题是这样的:
path = "C:\Users\Me\Desktop\example.xls" Set openWb = Workbooks.Open(path)
Workbooks.Open(Path)打开文件的那个。我该如何解决这个问题?我只需要获取 example.xls 文件并读取其数据,而无需打开该文件。非常感谢
Workbooks.Open(Path)