Forum

Error in VBA Userfo...
 
Notifications
Clear all

Error in VBA Userform Code

3 Posts
2 Users
0 Reactions
81 Views
(@mdsajjadsaleem)
Posts: 7
Active Member
Topic starter
 

i create the on work sheet of protect user name or password when i complete the code showing me some erro https://drive.google.com/open?id=1v_ejw9Yb7OKNn0JJB3luGLuKBfWx8cVU r

 
Posted : 24/02/2019 10:12 pm
Philip Treacy
(@philipt)
Posts: 1632
Member Admin
 

Hi,

You've mis-spelled MsgBox

Your line should be

MsgBox "You have entered wrong info!", vbCritical

When the error is generated the VBA debugger would have highlighted this line to show you where the error was, and the error message was 'Sub or function not defined'

Phil

 
Posted : 24/02/2019 10:53 pm
(@mdsajjadsaleem)
Posts: 7
Active Member
Topic starter
 

thanking you very very much

 
Posted : 25/02/2019 3:14 am
Share: