-
Regarding "Subscript out of range" Arrays are normally base 0, so a 4 item array has items 0, 1, 2 & 3. It is common for increments etc. to finish one number higher so you may need to use "From 0 to J -1" . Arrays can be made to start at 1 by using Option Base 1 at the head of your code, in which case From 1 to J may be correct.
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules