I'm using this code to count items on each worksheet in workbook 1. How do alter the code so that this part (ws.Range("C1").Value = cnt) is put into a different workbook? both workbooks have the same sheet names, if that helps.
Thanks!
Dim ws As Worksheet
With Sheet1
Dim x As Long
x...