VIP
Trusted Members
June 25, 2016
VIP
Trusted Members
June 25, 2016
VIP
Trusted Members
June 25, 2016
September 8, 2018
Hi Sunny,
This is not what I need 🙁
The concept of this is, user will key in data thru Userform and the data will transfer to worksheet automatically by pressing command button.
My intention of this merge is, it will automatically execute the merge after transferring data from Userform to worksheet.
Is it possible ? 🙁
Appreciate your advice.
October 5, 2010
Hi Mariya,
You should have said this in your original post.
Have you written the userform and code that writes the data to the sheet? If so you just need to modify this to carry out the merge on the relevant cells.
If you haven't yet started the form you may find these posts useful
https://www.myonlinetraininghu...../userforms
but start with this one
https://www.myonlinetraininghu.....xcel-forms
If you can supply a workbook with a form and code behind it we can look to modify as needed to achieve the cell merge you want.
regards
Phil
VIP
Trusted Members
June 25, 2016
VIP
Trusted Members
June 25, 2016
Hi Mariya
As I mentioned earlier, your original code tried to select TextBox10 which is disabled by you.
So I changed it to select Textbox1 instead. Just add the text in red below.
If Val(UserForm1.TextBox9) <> totalDefect Then
MsgBox ("QUANTITY DEFECT NOT SAME !"), vbCritical, "VERIFICATION"
' TextBox10.SetFocus 'this gives a error if qty doeant tally as it is disabled
TextBox1.SetFocus
Exit Sub
Else
Hope this helps.
Sunny
1 Guest(s)