Thanks for your help, but I don't understand exactly.
I assume that you want to make MyOptions public.
But where do I put in What?
I have the Userform code and the Module code containing the
BeforeDoubleClick Code. Now, what do I do now? What should I place in the new
module which code? And What should I change in the other ones?
Thanks for your help. Please help me thru, until the end.
Thanks again.
> You could create a public variable in a General module -- not behind the
> worksheet and not in the userform's code.
[quoted text clipped - 52 lines]
> >
> > Thanks in Advance.
Dave Peterson - 13 Oct 2008 01:21 GMT
I'm not sure I understand.
You'd still make the variable public and put it in a General module.
Then in the userform code:
Private Sub OKButton_Click()
On Error Resume Next
If optionRightAdd Then
myOption = 1
Run Macro50
End If
If OptionLeftAdd Then
myoption = 2
Run Macro51
End If
Unload UserForm1
End Sub
Then the _BeforeDoubleclick would use that variable (like in the previous post).
> Thanks for your help, but I don't understand exactly.
> I assume that you want to make MyOptions public.
[quoted text clipped - 68 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
art - 13 Oct 2008 01:46 GMT
Can you please tell me the full code that I should put in the General module
to make the variable public and put it in a General module?
Thanks for your help.
> I'm not sure I understand.
>
[quoted text clipped - 89 lines]
> > >
> > > Dave Peterson
Dave Peterson - 13 Oct 2008 03:20 GMT
Public myOption as long 'or boolean
> Can you please tell me the full code that I should put in the General module
> to make the variable public and put it in a General module?
[quoted text clipped - 98 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
art - 13 Oct 2008 03:46 GMT
Thanks I finally got it.
> Public myOption as long 'or boolean
>
[quoted text clipped - 100 lines]
> > >
> > > Dave Peterson