Adjust code show message about brand
Closed
                    
        
                    abdelfatah_0230
    
        
                    Posts
            
                
            73
                
                            Registration date
            Thursday July 18, 2019
                            Status
            Member
                            Last seen
            July 23, 2022
            
                -
                            Oct  2, 2019 at 02:56 PM
                        
abdelfatah_0230 Posts 73 Registration date Thursday July 18, 2019 Status Member Last seen July 23, 2022 - Oct 3, 2019 at 02:45 AM
        abdelfatah_0230 Posts 73 Registration date Thursday July 18, 2019 Status Member Last seen July 23, 2022 - Oct 3, 2019 at 02:45 AM
        Related:         
- Adjust code show message about brand
 - Voice message downloader - Guide
 - Cs 1.6 code - Guide
 - Instagram message request - Guide
 - Samsung volume increase code - Guide
 - Message yourself on whatsapp not showing ✓ - WhatsApp Forum
 
2 responses
                        
                    You are comparing  a value to a range.  You need to compare a value to a value, as in:
Textbox3.value < mycell.value.
Have fun!
 
                
                
            Textbox3.value < mycell.value.
Have fun!
                
        
                    abdelfatah_0230
    
        
                    Posts
            
                
            73
                
                            Registration date
            Thursday July 18, 2019
                            Status
            Member
                            Last seen
            July 23, 2022
            
                    
Oct 2, 2019 at 10:02 PM
    Oct 2, 2019 at 10:02 PM
                        
                    i ment  textbox3  the Quantity not brand  with column c   i change  this line to :
therange = "B" & a it show the quantity but there is problem it shows the quantity of number 200 every time i choose the new brand!
            therange = "B" & a it show the quantity but there is problem it shows the quantity of number 200 every time i choose the new brand!
                
        
                    abdelfatah_0230
    
        
                    Posts
            
                
            73
                
                            Registration date
            Thursday July 18, 2019
                            Status
            Member
                            Last seen
            July 23, 2022
            
    
Oct 3, 2019 at 02:45 AM
Oct 3, 2019 at 02:45 AM
    sorry for correction   therange = "c"    not b
    
    
        
    
    
    
    
Oct 2, 2019 at 04:15 PM
it supposes showing the number 300 in message box not 200 it always appears number 200 in every time choose the brand
this is my file
https://ufile.io/8nox6jtt
Updated on Oct 2, 2019 at 07:01 PM
Here is a screenshot of what is returned with my altered code!
By the way, which is which? Is textbox3 the Brand, or the Quantity? Your code is comparing to the Quantity. If you wanted to show the brand, you have to add in a cell for the Brand, because you have only linked to the Quantity (C column according to your example).
As in:
Yea, I don't get it ! :-)
XD
Have FUN!