Hello all,
Due to the size restriction of VBA code length I am forced to seperate my code accross Functions and call to them.
The setup is simple I have a private function that runs...Within that function, based on a recordcount # it then calls a separate function.
The problem I have is that it uses values detemined in the private function to run code is seperate sub.I dont want to reset the values but instead carry them over to the sub it calls.
For instances:
Private Sub ()
vDate = now()
Employee = current employee
Call ShiftRequest
(now as the code runs these values change based on certain criteria)
I would like to have something like this happen:
Public Sub ShiftRequest()
vDate = (private sub value of vDate when called)
Employee = (private sub value of Employee when called)
Can anyone help with how this is done. Or for that matter if it can be done.
Please let me know is this is not clear.
Thank you in advance.
Nick
Due to the size restriction of VBA code length I am forced to seperate my code accross Functions and call to them.
The setup is simple I have a private function that runs...Within that function, based on a recordcount # it then calls a separate function.
The problem I have is that it uses values detemined in the private function to run code is seperate sub.I dont want to reset the values but instead carry them over to the sub it calls.
For instances:
Private Sub ()
vDate = now()
Employee = current employee
Call ShiftRequest
(now as the code runs these values change based on certain criteria)
I would like to have something like this happen:
Public Sub ShiftRequest()
vDate = (private sub value of vDate when called)
Employee = (private sub value of Employee when called)
Can anyone help with how this is done. Or for that matter if it can be done.
Please let me know is this is not clear.
Thank you in advance.
Nick
Comment