I am concatenating 2 strings str1 and str3 in strTotal in Userforms VBA Excel 2007
When I save userform strTotal = str1 & str3 goes in sheet1!A2 and works fine.
Now there is requirement that I have to add a reference to sheet1!B2 in between the string. i.e when I save userform
strTotal = str1 & (something like =B2 ) & str3 goes in sheet1!A2. Later when user enters a value in B2 (which can vary) this value goes between str1 and str3 in sheet1!A2.
I have to do similar for 100 rows.
I am not sure how to do by VBA. I trying to avoid doing this by formula on the sheet.
Thanks
When I save userform strTotal = str1 & str3 goes in sheet1!A2 and works fine.
Now there is requirement that I have to add a reference to sheet1!B2 in between the string. i.e when I save userform
strTotal = str1 & (something like =B2 ) & str3 goes in sheet1!A2. Later when user enters a value in B2 (which can vary) this value goes between str1 and str3 in sheet1!A2.
I have to do similar for 100 rows.
I am not sure how to do by VBA. I trying to avoid doing this by formula on the sheet.
Thanks