Hi,
So, the problem I'm having is that some code I am writing calls another macro. This second macro has a userform with fields that must be completed before it will continue.
Is there any way I can have code in the first macro that will enter data into the userform from the second?
The main problem here is that I don't have access to the code in the second macro. As far as I understand, this means:
(1) I can't bypass the form and pass the variables directly to the second macro's code as I can't edit the second macro.
(2) I can't call an event when the userform activates as that code would need to be in the second macro and I can only edit the first, which pauses once the second macro is called.
(3) I can't use an application event as there isn't one that covers a userform popping up.
Any ideas?
Thanks in advance!
Phil.
So, the problem I'm having is that some code I am writing calls another macro. This second macro has a userform with fields that must be completed before it will continue.
Is there any way I can have code in the first macro that will enter data into the userform from the second?
The main problem here is that I don't have access to the code in the second macro. As far as I understand, this means:
(1) I can't bypass the form and pass the variables directly to the second macro's code as I can't edit the second macro.
(2) I can't call an event when the userform activates as that code would need to be in the second macro and I can only edit the first, which pauses once the second macro is called.
(3) I can't use an application event as there isn't one that covers a userform popping up.
Any ideas?
Thanks in advance!
Phil.