> Yes, the userform has to displayed modal to use RefEdit.
>
> --
> HTH
>
> Bob Phillips
> > Yes, the userform has to displayed modal to use RefEdit.
> >
[quoted text clipped - 5 lines]
> Thanks, Bob. But the code still doesn't work. Any other ideas as to
> why?
I found it. I had declared rColHdr publicly as a range, but in the
userform code. I moved it to the module and that fixed the problem. I
have no idea why. Anyone know why a public variable has to be declared
in the module, not in the form?
> > (replace somewhere in email address with gmail if mailing direct)
> >
[quoted text clipped - 53 lines]
> > > > >
> > > > > Thanks again!
Bob Phillips - 27 Oct 2006 17:06 GMT
If you declare it in the userform module, even as public, you cannot access
it outside the userform, unless you qualify it
Set userf1021Mid.rColHdr = Range(reDataStrt.Value)

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> > > Yes, the userform has to displayed modal to use RefEdit.
> > >
[quoted text clipped - 68 lines]
> > > > > >
> > > > > > Thanks again!
davegb - 01 Nov 2006 00:04 GMT
> If you declare it in the userform module, even as public, you cannot access
> it outside the userform, unless you qualify it
[quoted text clipped - 5 lines]
>
> Bob Phillips
I've decided I should have put all the code in the userform, so I moved
the first part to see if it will run. I also put the line above in, but
I'm still getting my error message that it's not a range. Any other
ideas?
> (replace somewhere in email address with gmail if mailing direct)
>
[quoted text clipped - 83 lines]
> > > > > > >
> > > > > > > Thanks again!