Modify names with a button
Closed
Luisa
-
Jun 11, 2010 at 09:39 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 12, 2010 at 03:55 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 12, 2010 at 03:55 AM
Related:
- Modify names with a button
- Ideogram ai names - Guide
- My contacts list names - Guide
- At button - Guide
- How to answer call with volume button android - Guide
- Wow monk names - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Jun 12, 2010 at 03:55 AM
Jun 12, 2010 at 03:55 AM
This is causing that issue
This routine is triggered by you change the combo box. Since at that point you dont have any value in text box, it puts a blank.
Having said that, do you know how to debug the code ? The reason I asked is that coz had you code run in a debug mode, you would have noticed this. Without knowing debugging, coding would be next to impossible as bugs are traced as you follow the flow of code as being is executed.
Private Sub ComboBox1_Click() Dim i As Integer Dim final As Integer For i = 2 To 1000 If Sheet20.Cells(i, 1) = "" Then final = i - 1 Exit For End If Next For i = 2 To final If UserForm4.ComboBox1 = Sheet20.Cells(i, 1) Then Sheet20.Cells(i, 1) = UserForm4.TextBox8 Exit For End If Next End Sub
This routine is triggered by you change the combo box. Since at that point you dont have any value in text box, it puts a blank.
Having said that, do you know how to debug the code ? The reason I asked is that coz had you code run in a debug mode, you would have noticed this. Without knowing debugging, coding would be next to impossible as bugs are traced as you follow the flow of code as being is executed.