I am programming a macro to copy-and-paste a worksheet from a master workbook (CSA.xlsx) to a daily update, however when I paste the worksheet, all the functions refer to the master (CSA.xlsx) workbook:
copy:
=(COUNTIFS('All Tech ID'!$B:$B,G7,'All Tech ID'!$N:$N,"Y"))/COUNTIFS('All Tech ID'!$A:$A,$F$7,'All Tech ID'!$N:$N,"Y")
paste:
=(COUNTIFS('[CSA.xlsx]All Tech ID'!$B:$B,G7,'[CSA.xlsx]All Tech ID'!$N:$N,"Y"))/COUNTIFS('[CSA.xlsx]All Tech ID'!$A:$A,$F$7,'[CSA.xlsx]All Tech ID'!$N:$N,"Y")
1. i've tried to replace the bolded code with null value, but that just highlights the cells red...
2. both workbooks are opened in the same excel window.
3. the two workbooks are similar, including all worksheets, i just want to create a new worksheet on a daily report using a template worksheet from CSA.xlsx (no, i can't get the ok to have the daily update automatically include this new worksheet!)
copy:
=(COUNTIFS('All Tech ID'!$B:$B,G7,'All Tech ID'!$N:$N,"Y"))/COUNTIFS('All Tech ID'!$A:$A,$F$7,'All Tech ID'!$N:$N,"Y")
paste:
=(COUNTIFS('[CSA.xlsx]All Tech ID'!$B:$B,G7,'[CSA.xlsx]All Tech ID'!$N:$N,"Y"))/COUNTIFS('[CSA.xlsx]All Tech ID'!$A:$A,$F$7,'[CSA.xlsx]All Tech ID'!$N:$N,"Y")
1. i've tried to replace the bolded code with null value, but that just highlights the cells red...
2. both workbooks are opened in the same excel window.
3. the two workbooks are similar, including all worksheets, i just want to create a new worksheet on a daily report using a template worksheet from CSA.xlsx (no, i can't get the ok to have the daily update automatically include this new worksheet!)
Last edited: