Good morning, everyone,
I have a code attached in file named DataSource.
In this workbook, there is a range I23:I24 in worksheet named Index. The range actually includes sheet tab names used in another file named ProductReport. I want this code to perform the following simple actions on ProductReport. It just did not work.
Any ideas?
Thanks lot.
DL
I have a code attached in file named DataSource.
In this workbook, there is a range I23:I24 in worksheet named Index. The range actually includes sheet tab names used in another file named ProductReport. I want this code to perform the following simple actions on ProductReport. It just did not work.
Any ideas?
Thanks lot.
DL
Code:
ITDReport = "ProductReport.xlsm"
Thisworkbook.Activate
For Each cell In Worksheets("Index").Range("I23:I24")
Set ws = Worksheets(cell.Text)
ITDReport.Activate
ws.Activate
With Range("C26:F26")
.Formula = "=A1+A2"
End With
Next