Dear Mr Excel, Dear users,
Being new to VBA is quite a challenge and I am finding that this one is quite a big one! I would like to request your help in helping me find a solution to an automatic range issue.
Problem : I have two different excel workbooks both having a different number of columns and a different number of rows
example -> workbook 1: 5 columns /10 rows
workbook 2: 12 columns / 200 rows
Target: What I would like to obtain is a code that would work on both workbooks and create a sum and a count of all rows but that would adapt to a change in the number of rows and columns if the code is copied from one workbook to another.
example -> John Peter Paul James William Count Sum
Monday 1 5 7 0 3 4 16
Tuesday 5 0 0 12 0 2 17
Many thanks in advance to all for your help and time!
François
Being new to VBA is quite a challenge and I am finding that this one is quite a big one! I would like to request your help in helping me find a solution to an automatic range issue.
Problem : I have two different excel workbooks both having a different number of columns and a different number of rows
example -> workbook 1: 5 columns /10 rows
workbook 2: 12 columns / 200 rows
Target: What I would like to obtain is a code that would work on both workbooks and create a sum and a count of all rows but that would adapt to a change in the number of rows and columns if the code is copied from one workbook to another.
example -> John Peter Paul James William Count Sum
Monday 1 5 7 0 3 4 16
Tuesday 5 0 0 12 0 2 17
Many thanks in advance to all for your help and time!
François