I'm new to to vbs script in excel, and i'm stuck on looping through column function. I have the function below it does what I want but it stop after one iteration. I want it to loop through entire range A1 until the cell is blank. Range A1 contain given numbers, and functions below that does the sum until it hit 100; once it get 100 total. The paste of functions right next to the cell of 100 continue until the end of range A1. The number of sum equal 100 is varies between 4 column and 6 column.
once the sum of cell is 100, the adjacent cell is blank even with formula exist. So, I'm checking for blank cell on A2 range to repeat the process of pasting, rather than the value 100.
============================================Please Login or Register to view this content.
A B C D E F G H I J K
1 10 10 10 40 30 10 20 30 40 10 15
2 10 20 30 70 100 10 30 60 100 10 25
3 # # # # # #
4 # # # # # #
5 # # # # # #
6
7
8
9 Reference Range of Formula to copy and paste
10 10 10 10 40 30
11 10 20 30 70 100
12 # # # # # #
13 # # # # # #
14
15
Thanks,
Fred
Moderators Note:
- Please follow Forum Rule #3 and use code tags.
- Added for you this time, but please use them in the future…Thanks.
Bookmarks