A
ancora70
Good day gents.
Hopefully you with your great experience can help me for the following
vba issue.
I have an excel file with an userform who has a listbox and a sheet
with some records.
Those records have a string on first column and correspondly a score
(integer) on the second column
What I want to do by vba into the userform is to sum the content of
those records column A (showing the result into the listbox) until
the characthers of "string sum" is max 21 character including the
space between the records.
For example I have data (column A) with score (column b) into sheets3
like follows
A B
First 12
Second 9
Third 4
..
..
fiftheenth 10
..
twentyth 9
macro has to sum starting from "First" down until the string sum (for
example "first second fiftheen") characters are "21", so showing this
result into listbox into the userform and related sum score (in this
example score = 31) in the same listbox.
Sheet3 contains 1000 records so macro ha to repeat the same loop to
find as much as string sum possible with this criteria (I remember the
sum of character max 21) showing all to the listbox a.m.
Thanks so much for your help
Hopefully you with your great experience can help me for the following
vba issue.
I have an excel file with an userform who has a listbox and a sheet
with some records.
Those records have a string on first column and correspondly a score
(integer) on the second column
What I want to do by vba into the userform is to sum the content of
those records column A (showing the result into the listbox) until
the characthers of "string sum" is max 21 character including the
space between the records.
For example I have data (column A) with score (column b) into sheets3
like follows
A B
First 12
Second 9
Third 4
..
..
fiftheenth 10
..
twentyth 9
macro has to sum starting from "First" down until the string sum (for
example "first second fiftheen") characters are "21", so showing this
result into listbox into the userform and related sum score (in this
example score = 31) in the same listbox.
Sheet3 contains 1000 records so macro ha to repeat the same loop to
find as much as string sum possible with this criteria (I remember the
sum of character max 21) showing all to the listbox a.m.
Thanks so much for your help