G
google3luo359
Hello.
This is very basic but I don't get it at present.
It dawned on me yesterday that I was using the exact same 20 lines or
so of code in several forms. Kind of wasteful. Got me thinking about
Public subs. Not sure how to use them.
I created a Module (NewYear) and in that module created a Public Sub
NewYearRoutines().
Now have I so far been correct? If so I don't know how to call the
Public Sub.
In my Form's Private Sub I tried:
NewYear
Call NewYear
NewYearRoutines()
Call NewYearRoutines()
But none of them have worked.
TIA Ric
This is very basic but I don't get it at present.
It dawned on me yesterday that I was using the exact same 20 lines or
so of code in several forms. Kind of wasteful. Got me thinking about
Public subs. Not sure how to use them.
I created a Module (NewYear) and in that module created a Public Sub
NewYearRoutines().
Now have I so far been correct? If so I don't know how to call the
Public Sub.
In my Form's Private Sub I tried:
NewYear
Call NewYear
NewYearRoutines()
Call NewYearRoutines()
But none of them have worked.
TIA Ric