Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
242 views
in Technique[技术] by (71.8m points)

arrays - How to Loop through multiple workbooks applying the same function to all the workbboks

I need to apply array function using Loop to the multiple workbooks

Scenario:

Workbooks.Open filename:="Core ReportDL tracker Pivot reports Wk10 FY21 - 1.xlsx"
Workbooks.Open filename:="FY21 P01 Apr 2021PL FY2021 Adyen April-20 WK 1 - 1.xlsm"

Workbooks("PL FY2021 Adyen April-20 WK 1 - 1.xlsm").Activate
 
ActiveWorkbook.ChangeLink "Core ReportDL tracker Pivot reports Wk01 FY21.xlsx", _
 "Core ReportDL tracker Pivot reports Wk10 FY21 - 1.xlsx", xlExcelLinks

what is the code to be used by creating (Single dim in array) using loop function. As i have done the linking for Adyen, similaryly i need to do it for15 more customer.

Thanks in advance

question from:https://stackoverflow.com/questions/65933942/how-to-loop-through-multiple-workbooks-applying-the-same-function-to-all-the-wor

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...