Calling a Private Sub from another Private Sub

I need to call a Private Sub called Save_Click from another Private Sub called New_Click. I can call a Private Sub I create but when I try and call one from a Private Sub generated from a Button it doesn't work. How would I code this?
rfgrahamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BinuthCommented:
getting any error ? please provide the code
0
rfgrahamAuthor Commented:
I am trying to call the sub using this: Save_Click()
and I'm getting this error - "Argument not specified for parameter of 'e' of 'Private Sub Save_Click(send As Object, e As System.EventArgs)"
0
appariCommented:
are the two subs in the same class/module? if they are in two different classes you cannot call as their scope is private. have to change them to public scope.
please post existing code and the error message
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

appariCommented:
if you are trying to call "Private Sub Save_Click(send As Object, e As System.EventArgs)"
you need to pass the parameters sender and e too.
0
BinuthCommented:
call...
Save_Click(nothing,nothing)
0
Wayne Taylor (webtubbs)Commented:
If you trying to run the procedure which handles the Click event of a Button, use the PerformClick method of the button.

http://msdn.microsoft.com/en-us/library/system.windows.forms.button.performclick.aspx

Wayne
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.