Need help to modify the code so the comma wont appear after the value... Here is one part of code :
I will have search for date from sht1 then look for one particular item name if it have appear on that date. After that input the number of counts in sht2.
Cells beside the number counts are those cells with "item colours names" which are also get from sht1.
This code work but here is the problem..
After the macro run, it calculate the right n but for the item colour indicate beside the count cells have a extra "comma".
Example like this..for 2 counts, the item colours names.
Red,Blue, <<<< This comma in red is the extra comma which i do not want.
"The code highlighted in red are the source of the problem", but i do not know how to fix it so i can get rid that extra comma..
I have help to modify,pls give me guide me..
Thank in advance
Code:
sht2.Cells(b, 2).Value = sht2.Cells(b, 2).Value + 1
[COLOR=red]sht2.Cells(b, 3).Value = sht1.Cells(a, 3) + "," + sht2.Cells(b, 3).Value[/COLOR]
[COLOR=red]sht2.Cells(b, 4).Value = sht1.Cells(a, 10) + "," + sht2.Cells(b, 4).Value[/COLOR]
I will have search for date from sht1 then look for one particular item name if it have appear on that date. After that input the number of counts in sht2.
Cells beside the number counts are those cells with "item colours names" which are also get from sht1.
This code work but here is the problem..
After the macro run, it calculate the right n but for the item colour indicate beside the count cells have a extra "comma".
Example like this..for 2 counts, the item colours names.
Red,Blue, <<<< This comma in red is the extra comma which i do not want.
"The code highlighted in red are the source of the problem", but i do not know how to fix it so i can get rid that extra comma..
I have help to modify,pls give me guide me..
Thank in advance
Last edited: