我正在试着写一个可以运行另外两个宏的宏。但是,第二个宏要求您选择数据所在的文件的位置。有没有办法对10个不同的文件位置运行第二个宏10次。总而言之,两个宏都有10个循环。
其中一些代码类似于以下sudo代码:
file_loc = ('c:/users/desktop/....sim1.csv','c:/users/desktop/....sim2.csv'..'sim3'...sim10')
for i in range (10):
Run Macro1
wait for calculation
Run Macro2
file = file_loc(i)
wait for calculation
copy cell A10 (result) to AZ(i)
next i这在VBA中是可能的吗?
https://stackoverflow.com/questions/38221960
复制相似问题