range not carrying over
On Nov 19, 12:26 pm, Dave Peterson wrote:
#2. Maybe you could just unload the form.
Private Sub btnCancel_Click()
unload me
End Sub
I modified the code to try this. I remember I found this in this NG
some time ago and tried it, but it didn't recognize "Me" and I had to
replace it with the userform name to get it to work. Never figured out
why. Can't test it until I figure out why I'm getting the compile
error in the General module.
#1. Difficult to guess without seeing what changes you made.
Of course. I prefer to work on a problem for a while before I post
here. I learn more that way and actually get to write some code. I
appreciate you experts taking the time to help me out here, but I
prefer not to bother you until I'm stumped. Thanks again for all your
help.
davegb wrote:
On Nov 16, 4:31 pm, Dave Peterson wrote:
<<snipped
Dave, thanks for your reply.
I moved the public declarations from the userform module to the
general module. Now I'm getting a compile error on one of the
variables that I wasn't getting before. Not sure why, but I'm trying
to track it down.
As for the Button Cancel routine resetting my variables, I didn't know
it did that, but I don't think it matters. I just wanted to end the
whole routine if the user chooses "Cancel". If there's a better way,
I'm all ears, like Prince Charles! :)
--
Dave Peterson
|