resuming a routine after a userform

cinziorecoaro

New Member
Joined
Feb 19, 2015
Messages
1
Hi everyone,

I have a problem with VBA in Excel 2003. In a workbook I have many routines that they call an userform called “RichiediPwd”. In the routines code I have put:

Sub (routinename)
….
RichiediPwd.Show
….

The userform simply ask for a password and it determinates if the password is correct or not.
I wish if the password is correct the routine that previously called the userform resume from the point where it remained. Is there a way to do it?

At the present when the userform ok button code finishes all macro stop.

Please help me
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hey,

I do something similar... on the user form i have a textbox for username and another text box for password. I assume your is similar. it's caled from this procedure:
Code:
Sub ftp_login_details()
       
    With frm_ftp_pwd
        .show
        
        my_shortcode = LCase(.txt_ftp_username)
        my_pwd = .txt_ftp_password.Value

    End With

End Sub

then the password form has a command button with the following code:

Code:
frm_ftp_pwd.hide

Try something like that and see if it works
 
Upvote 0

Forum statistics

Threads
1,216,825
Messages
6,132,935
Members
449,768
Latest member
LouBa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top